diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-12 22:26:45 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2022-07-12 22:26:45 +0200 |
commit | a46bede230afd80b3fbf562f4d5d7491155e3835 (patch) | |
tree | 3cc8a0e12b76c0ef906bce5fc8adcccc640d68aa /src/components/services | |
parent | eb030922866f1e753162d99ea6b25a4f4e941b05 (diff) | |
download | homer-a46bede230afd80b3fbf562f4d5d7491155e3835.tar.gz homer-a46bede230afd80b3fbf562f4d5d7491155e3835.tar.zst homer-a46bede230afd80b3fbf562f4d5d7491155e3835.zip |
Small fixes
Diffstat (limited to 'src/components/services')
-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}`; |