Skip to content

Commit

Permalink
fix: reorder network status retrieval in PlatformSwitcher component
Browse files Browse the repository at this point in the history
  • Loading branch information
Ysrbolles committed Nov 28, 2024
1 parent 3c1e887 commit 4d00832
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/PlatformSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ export default function PlatformSwitcher() {
const { isDesktop } = useWidth()
const dispatch = useDispatch()
const { getUpgradePhases } = useWallet()
const { status } = useNetwork()

const [featureEnabled, setFeatureEnabled] = useState<boolean>(false)
const { status } = useNetwork()

useEffect(() => {
if (status === 'succeeded') {
Expand All @@ -51,7 +50,6 @@ export default function PlatformSwitcher() {
dispatch(changeActiveApp('Network'))
}
}, [featureEnabled, allApps, activeApp, dispatch])

return (
<Box
sx={{
Expand Down

0 comments on commit 4d00832

Please sign in to comment.