From 5e21a7df9c5584901e95c726cb6705928183a40a Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 6 Jun 2022 15:33:25 +0200 Subject: [PATCH] :bug: Fix bug in ping module Module would not ping on the first activation / deactivation --- src/components/modules/ping/PingModule.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modules/ping/PingModule.tsx b/src/components/modules/ping/PingModule.tsx index af9cd3a77..c7586f538 100644 --- a/src/components/modules/ping/PingModule.tsx +++ b/src/components/modules/ping/PingModule.tsx @@ -32,7 +32,7 @@ export default function PingComponent(props: any) { .catch(() => { setOnline('down'); }); - }, []); + }, [config.modules?.[PingModule.title]?.enabled]); if (!exists) { return null; }