Skip to content

Commit

Permalink
Merge pull request #806 from stakwork/bugfix/fix-auth
Browse files Browse the repository at this point in the history
fix: fix auth on initial load
  • Loading branch information
Rassl authored Jan 22, 2024
2 parents 1d1ae62 + 4f7c4d7 commit e7b8bb6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/App/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import 'react-toastify/dist/ReactToastify.css'
import { Socket } from 'socket.io-client'
import * as sphinx from 'sphinx-bridge'
import styled from 'styled-components'
import { Flex } from '~/components/common/Flex'
import { DataRetriever } from '~/components/DataRetriever'
import { GlobalStyle } from '~/components/GlobalStyle'
import { Universe } from '~/components/Universe'
import { Flex } from '~/components/common/Flex'
import { isDevelopment, isE2E } from '~/constants'
import useSocket from '~/hooks/useSockets'
import { getIsAdmin } from '~/network/auth'
Expand Down Expand Up @@ -191,8 +191,7 @@ export const App = () => {
return () => {
clearTimeout(timer)
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}, [handleAuth])

return (
<AppProviders>
Expand Down

0 comments on commit e7b8bb6

Please sign in to comment.