diff --git a/components/AndroidWidget/InfoWidget.jsx b/components/AndroidWidget/InfoWidget.jsx index f70c8cc..db3a556 100644 --- a/components/AndroidWidget/InfoWidget.jsx +++ b/components/AndroidWidget/InfoWidget.jsx @@ -81,17 +81,15 @@ export function InfoWidget({ time, text }) { }} > {text ? ( - - - + clickAction="OPEN_APP" + text={text} + /> ) : ( ); + renderWidget( + + ); break; } case "JR_shikoku_train_info": diff --git a/components/Settings/WidgetSettings.js b/components/Settings/WidgetSettings.js index c4fb501..b58e4c5 100644 --- a/components/Settings/WidgetSettings.js +++ b/components/Settings/WidgetSettings.js @@ -34,7 +34,7 @@ export const WidgetSettings = ({ navigate }) => { }); getInfoString().then(({ time, text }) => { setTime(time); - setTrainInfo(text); + setTrainInfo(text.toString()); }); }, []); return (