weather: fix precipitation display

The `precipProbability` value ranges from 0 to 1, so to display
percentages we need to scale it up.
This commit is contained in:
Fang 2019-09-26 13:38:05 +02:00 committed by Jared Tobin
parent 2f739c0edd
commit 7b21316694
No known key found for this signature in database
GPG Key ID: 0E4647D58F8A69E4

View File

@ -178,7 +178,7 @@ export default class WeatherTile extends Component {
text={c.windBearing + '°'} />
<IconWithData
icon='chancerain'
text={c.precipProbability + '%'} />
text={(c.precipProbability * 100) + '%'} />
<IconWithData
icon='windspeed'
text={Math.round(c.windSpeed) + ' mph'} />