🐛 Fix bug in ping module

Module would not ping on the first activation / deactivation
This commit is contained in:
ajnart
2022-06-06 15:33:25 +02:00
parent 64eb00f2ee
commit 5e21a7df9c

View File

@@ -32,7 +32,7 @@ export default function PingComponent(props: any) {
.catch(() => {
setOnline('down');
});
}, []);
}, [config.modules?.[PingModule.title]?.enabled]);
if (!exists) {
return null;
}