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 ( - - - - + + + + ); }