Fix UV index number not showing if zero
This commit is contained in:
parent
e7bf4fbcbd
commit
1704ab0140
@ -79,7 +79,7 @@ function loadWeather(reload) {
|
||||
|
||||
app.gauge.get('#nowuvindexgauge').update({
|
||||
value: Math.min(resp.now.uv_index, 10) / 10,
|
||||
valueText: resp.now.uv_index,
|
||||
valueText: resp.now.uv_index + "",
|
||||
borderColor: colorThemeNameToHex(uvIndexToColor(resp.now.uv_index))
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user