From 52a04209d0535ca4a883683cbf28876761bcb29d Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Sun, 21 May 2023 08:08:20 -0700
Subject: [PATCH] Syntax changes to piAlert widget
---
src/widgets/pialert/component.jsx | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/widgets/pialert/component.jsx b/src/widgets/pialert/component.jsx
index e91c31c5..49bef897 100644
--- a/src/widgets/pialert/component.jsx
+++ b/src/widgets/pialert/component.jsx
@@ -9,27 +9,29 @@ export default function Component({ service }) {
const { widget } = service;
- const { data: piholeData, error: piholeError } = useWidgetAPI(widget, "data");
+ const { data: pialertData, error: pialertError } = useWidgetAPI(widget, "data");
- if (piholeError) {
- return ;
+ if (pialertError) {
+ return ;
}
- if (!piholeData) {
+ if (!pialertData) {
return (
+
+
);
}
return (
-
-
-
-
+
+
+
+
);
}