From 90f5679e07e2993efd6bb833e16b3e1ef53a2a90 Mon Sep 17 00:00:00 2001 From: SocksOnHead Date: Thu, 14 Aug 2025 17:15:02 +0200 Subject: [PATCH] Change temperature format if null Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- HomeApi/wwwroot/index.cshtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/HomeApi/wwwroot/index.cshtml b/HomeApi/wwwroot/index.cshtml index c6915e1..55056c8 100644 --- a/HomeApi/wwwroot/index.cshtml +++ b/HomeApi/wwwroot/index.cshtml @@ -494,7 +494,9 @@
-
@Model.Weather?.Current.Temperature°C
+
+ @(Model.Weather?.Current.Temperature != null ? $"{Model.Weather.Current.Temperature}°C" : "N/A") +
Feels like @Model.Weather?.Current.Feelslike°C