mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 22:55:03 +03:00
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:
parent
2f739c0edd
commit
7b21316694
@ -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'} />
|
||||
|
Loading…
Reference in New Issue
Block a user