fixed issue

This commit is contained in:
Henry Hiles 2023-04-06 14:41:53 -04:00
parent 78285ab5c2
commit 8210f983d3

View file

@ -23,7 +23,7 @@ fun HourlyWeatherDataDto.toHourlyWeatherDataMap(): Map<Int, List<HourlyWeatherDa
temperature = temperatures[index].roundToInt(), temperature = temperatures[index].roundToInt(),
apparentTemperature = apparentTemperatures[index].roundToInt(), apparentTemperature = apparentTemperatures[index].roundToInt(),
windSpeed = windSpeeds[index].roundToInt(), windSpeed = windSpeeds[index].roundToInt(),
precipitationProbability = precipitationProbabilities[index], precipitationProbability = if (index in precipitationProbabilities.indices) precipitationProbabilities[index] else null,
weatherType = WeatherType.fromWMO(weatherCodes[index]) weatherType = WeatherType.fromWMO(weatherCodes[index])
) )
) )