diff options
Diffstat (limited to 'src/components/services/OpenWeather.vue')
-rw-r--r-- | src/components/services/OpenWeather.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/services/OpenWeather.vue b/src/components/services/OpenWeather.vue index 756abf7..ba0be96 100644 --- a/src/components/services/OpenWeather.vue +++ b/src/components/services/OpenWeather.vue | |||
@@ -55,9 +55,9 @@ export default { | |||
55 | if (!this.temp) return ""; | 55 | if (!this.temp) return ""; |
56 | 56 | ||
57 | let unit = "K"; | 57 | let unit = "K"; |
58 | if (this.item.type === "metric") { | 58 | if (this.item.units === "metric") { |
59 | unit = "°C"; | 59 | unit = "°C"; |
60 | } else if (this.item.type === "imperial") { | 60 | } else if (this.item.units === "imperial") { |
61 | unit = "°F"; | 61 | unit = "°F"; |
62 | } | 62 | } |
63 | return `${this.temp} ${unit}`; | 63 | return `${this.temp} ${unit}`; |