File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -744,7 +744,10 @@ function init_weather() {
744744
745745 // load weather
746746 if ( result [ "weather" ] ) {
747- weather_info = result [ "weather" ] ;
747+ if ( result [ "openweathermap" ] && result [ "nws" ] ) {
748+ weather_info = result [ "weather" ] ;
749+ }
750+ // don't set weather info if the previous info is invalid such as from previous version
748751 }
749752 weather_location_string = result [ "geocode" ]
750753
Original file line number Diff line number Diff line change @@ -346,6 +346,7 @@ <h3>Changelog v2.1.0</h3>
346346 < h4 > Changes</ h4 >
347347 < ul >
348348 < li > Added YYYY-MM-DD date format option.</ li >
349+ < li > fixed bug that prevented weather from working if user had saved weather info pre-2.0.0</ li >
349350 </ ul >
350351 </ div >
351352 < div class ="modal-footer ">
You can’t perform that action at this time.
0 commit comments