Skip to content

Commit

Permalink
Not open error toast at first launch
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Jul 9, 2024
1 parent f9bb317 commit 49db2a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ function DatahubHealthChecker() {
})
const currentId = useRef<string | number>('')
useEffect(() => {
if (typeof data !== 'boolean') return
if (!data) {
if (currentId.current) return
const id = toast.custom(
Expand Down

0 comments on commit 49db2a5

Please sign in to comment.