Skip to content

Commit

Permalink
fix(Account): fix social account bind state toast
Browse files Browse the repository at this point in the history
ref:
ref:
202309-product-02#ZN-0042
  • Loading branch information
wlliaml committed Oct 13, 2023
1 parent e9f83a8 commit 013f019
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Me/Settings/Account/Socials/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useContext, useLayoutEffect, useState } from 'react'
import { useContext, useEffect, useState } from 'react'
import { FormattedMessage } from 'react-intl'

import {
Expand Down Expand Up @@ -69,7 +69,7 @@ const Socials = () => {
router.push(url)
}

useLayoutEffect(() => {
useEffect(() => {
const bindResult = storage.remove(OAUTH_STORAGE_BIND_STATE)
if (!bindResult) {
return
Expand Down

0 comments on commit 013f019

Please sign in to comment.