From b6bee14b514a4bfcc861722f227fa789ad476732 Mon Sep 17 00:00:00 2001 From: Maciej Gierada Date: Thu, 13 Jun 2024 21:06:00 +0200 Subject: [PATCH] debug: deployment --- ui/src/components/CounterDisplay/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/components/CounterDisplay/index.js b/ui/src/components/CounterDisplay/index.js index 518ca59..aeab366 100644 --- a/ui/src/components/CounterDisplay/index.js +++ b/ui/src/components/CounterDisplay/index.js @@ -9,6 +9,7 @@ const fetchCurrentValue = async () => { const response = await axios.get(endpoint); console.log("Response:", response.data); // Debug log + if (response.data && typeof response.data.CurrentValue === "number") { return { currentValue: response.data.CurrentValue, error: null }; } else {