From 57c5a27e8590bf1e847842ae6c9e8c82e959ccd3 Mon Sep 17 00:00:00 2001
From: Jakob Stendahl <jakobste@uio.no>
Date: Wed, 14 Oct 2020 13:19:39 +0200
Subject: Clean up some js, and make the UI a bit prettier

---
 src/components/PredictedSpaceWeatherThing.svelte | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/components/PredictedSpaceWeatherThing.svelte')

diff --git a/src/components/PredictedSpaceWeatherThing.svelte b/src/components/PredictedSpaceWeatherThing.svelte
index 0a40e79..5c4cb5b 100644
--- a/src/components/PredictedSpaceWeatherThing.svelte
+++ b/src/components/PredictedSpaceWeatherThing.svelte
@@ -11,6 +11,7 @@
     let time = dateTime[1].substring(0,5);
     let temp = prediction["temp"];
     let clouds = prediction["clouds"];
+    let hasNOMETData = prediction["hasNOMETData"];
 </script>
 
 <style>
@@ -56,9 +57,11 @@
     </div>
     <div class="data">
         <h2>{kp}</h2>
+        {#if hasNOMETData}
         <div>
             <p><i class="fas fa-thermometer-half"></i> {temp}°C</p>
             <p><i class="fas fa-cloud"></i> {clouds}%</p>
         </div>
+        {/if}
     </div>
 </div>
-- 
cgit v1.2.3

