~ahayzen/ubuntu-weather-app/reboot-settings-page

« back to all changes in this revision

Viewing changes to app/ui/HomePage.qml

  • Committer: Andrew Hayzen
  • Date: 2015-02-11 04:14:16 UTC
  • Revision ID: ahayzen@gmail.com-20150211041416-ix3sbb3eonpw0yn9
* Fix for maxTemps <0 not appearing

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
        // set current temps and condition
80
80
        iconName = (current.icon) ? current.icon : ""
81
81
        conditionText = (current.condition.main) ? current.condition.main : current.condition; // difference TWC/OWM
82
 
        todayMaxTemp = (today[tempUnits].tempMax) ? Math.round(today[tempUnits].tempMax).toString() + settings.tempScale: "";
 
82
        todayMaxTemp = (today[tempUnits].tempMax !== undefined) ? Math.round(today[tempUnits].tempMax).toString() + settings.tempScale: "";
83
83
        todayMinTemp = Math.round(today[tempUnits].tempMin).toString() + settings.tempScale;
84
84
        currentTemp = Math.round(current[tempUnits].temp).toString() + String("°");
85
85