Skip to content

Commit

Permalink
setConnectedAccount dependencies in useeffect
Browse files Browse the repository at this point in the history
  • Loading branch information
fistasolutions authored and DOBEN committed Nov 6, 2024
1 parent c460ffb commit 2ace241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const ConnectWalletAdmin = () => {
} catch (error) {
console.error('Error:', error);
}
}, [provider]);
}, [provider, setConnectedAccount]);
return (
<Container fluid className="d-flex flex-column text-light bg-dark" style={{ position: 'relative' }}>
<div className="d-flex align-items-center">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const ConnectWallet = () => {
} catch (error) {
console.error('Error:', error);
}
}, [provider]);
}, [provider, setConnectedAccount]);

return (
<Container fluid className="d-flex flex-column min-vh-100 text-light bg-dark" style={{ position: 'relative' }}>
Expand Down

0 comments on commit 2ace241

Please sign in to comment.