File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ function App({ Component, pageProps }) {
29
29
const isSupportCurrentNetwork = SUPPORT_NETWORKS . includes ( chainId )
30
30
const [ backendVersion , setBackendVersion ] = useState ( "err" )
31
31
32
- const [ , actions ] = useAsync ( async ( ) => {
32
+ const [ autoLoginState , actions ] = useAsync ( async ( ) => {
33
33
if ( ! sigInLocal || ! accountInLocal ) return
34
34
const cachedProvider = await createProvider ( undefined , ( id ) => dispatch ( { type : "SET_CHAIN_ID" , chainId : id } ) )
35
35
if ( ! cachedProvider ) return
@@ -117,6 +117,7 @@ function App({ Component, pageProps }) {
117
117
118
118
119
119
const renderActionButton = ( ) => {
120
+ if ( ! [ 'success' , 'error' ] . includes ( autoLoginState . status ) ) return null
120
121
if ( ! sigInLocal || ! accountInLocal ) {
121
122
return (
122
123
< button
You can’t perform that action at this time.
0 commit comments