Skip to content

Commit

Permalink
bruh moment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBozzz34 committed Mar 8, 2024
1 parent 1516f3c commit c1504a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Scoreboard() {
const [userAccount, setUserAccount] = useState<User | null>(null)
const { messages, sendMessage, connectionStatus } = useWebSocket()

const ignore = useRef<boolean>(false)
const ignore = useRef<boolean>(true)

useEffect(() => {
onAuthStateChanged(auth, (user) => {
Expand All @@ -35,7 +35,7 @@ export default function Scoreboard() {
sendMessage(JSON.stringify(message))

return () => {
ignore.current = true
ignore.current = false
}
}, [sendMessage, userAccount])

Expand Down

0 comments on commit c1504a4

Please sign in to comment.