From 7b213166940ca9665702bc3b9e4be88ae6bf14a0 Mon Sep 17 00:00:00 2001 From: Fang Date: Thu, 26 Sep 2019 13:38:05 +0200 Subject: [PATCH] weather: fix precipitation display The `precipProbability` value ranges from 0 to 1, so to display percentages we need to scale it up. --- pkg/interface/weather/tile/tile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interface/weather/tile/tile.js b/pkg/interface/weather/tile/tile.js index d21e5a4266..78cf16c0c1 100644 --- a/pkg/interface/weather/tile/tile.js +++ b/pkg/interface/weather/tile/tile.js @@ -178,7 +178,7 @@ export default class WeatherTile extends Component { text={c.windBearing + '°'} /> + text={(c.precipProbability * 100) + '%'} />