Fix mph
This commit is contained in:
parent
ae71058669
commit
abf45c9311
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ fun HourlyWeatherDataDto.toHourlyWeatherData(units: HourlyWeatherUnitsDto): List
|
||||||
windSpeed = windSpeed[index].roundToInt(),
|
windSpeed = windSpeed[index].roundToInt(),
|
||||||
precipitationProbability = precipitationProbability.getOrNull(index),
|
precipitationProbability = precipitationProbability.getOrNull(index),
|
||||||
weatherType = WeatherType.fromWMO(weatherCode[index]),
|
weatherType = WeatherType.fromWMO(weatherCode[index]),
|
||||||
units = units,
|
units = units.copy(
|
||||||
|
windSpeed = units.windSpeed.replace("mp/h", "mph"),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue