From a46bede230afd80b3fbf562f4d5d7491155e3835 Mon Sep 17 00:00:00 2001
From: Bastien Wirtz <bastien.wirtz@gmail.com>
Date: Tue, 12 Jul 2022 22:26:45 +0200
Subject: Small fixes

---
 src/components/services/OpenWeather.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/services/OpenWeather.vue')

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 {
       if (!this.temp) return "";
 
       let unit = "K";
-      if (this.item.type === "metric") {
+      if (this.item.units === "metric") {
         unit = "°C";
-      } else if (this.item.type === "imperial") {
+      } else if (this.item.units === "imperial") {
         unit = "°F";
       }
       return `${this.temp} ${unit}`;
-- 
cgit v1.2.3

