From 49db2a5c2cda4d9d7ae9d5b4fce8d9dcdef5ef92 Mon Sep 17 00:00:00 2001 From: teodorus-nathaniel Date: Tue, 9 Jul 2024 23:58:42 +0700 Subject: [PATCH] Not open error toast at first launch --- src/pages/_app.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index ef0a63224..40515b99b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -272,6 +272,7 @@ function DatahubHealthChecker() { }) const currentId = useRef('') useEffect(() => { + if (typeof data !== 'boolean') return if (!data) { if (currentId.current) return const id = toast.custom(