Skip to content

Commit

Permalink
Prevent infinity spinner when switching to same account (#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
CassioMG authored Nov 20, 2024
1 parent 1f93869 commit aad0f96
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const AccountListIdenticon = ({
const shortPublicKey = truncatedPublicKey(publicKey);

const handleMakeAccountActive = () => {
if (setLoading) {
// If this account is already active (selected) we don't need to load any
// more stuff, so let's just collapse the dropdown in this case
if (!active && setLoading) {
setLoading(true);
}

Expand Down

0 comments on commit aad0f96

Please sign in to comment.