We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e168663 commit c34981cCopy full SHA for c34981c
src/components/common/Banner/Banner.tsx
@@ -86,10 +86,7 @@ export const Banner = () => {
86
const onlineTimer = useRef<ReturnType<typeof setTimeout>>(null)
87
88
const onOnline = () => {
89
- if (onlineTimer.current) {
90
- clearTimeout(onlineTimer.current)
91
- }
92
-
+ clearTimeout(onlineTimer.current)
93
setShowOnlineBanner(true)
94
onlineTimer.current = setTimeout(() => setShowOnlineBanner(false), ONLINE_BANNER_TIMEOUT)
95
}
0 commit comments