diff --git a/MTMR/WeatherBarItem.swift b/MTMR/WeatherBarItem.swift index fb120e9..8951853 100644 --- a/MTMR/WeatherBarItem.swift +++ b/MTMR/WeatherBarItem.swift @@ -81,8 +81,8 @@ class WeatherBarItem: CustomButtonTouchBarItem, CLLocationManagerDelegate { var condition_icon = "" if let main = json["main"] as? [String : AnyObject] { - if let temp = main["temp"] as? Int { - temperature = temp + if let temp = main["temp"] as? Double { + temperature = Int(temp) } }