Skip to content

Commit

Permalink
Merge pull request #652 from Psychedelic/fix/redirect-remove-account
Browse files Browse the repository at this point in the history
redirect to main account when delete the one you are in
  • Loading branch information
tomiir authored Oct 24, 2022
2 parents 88c2792 + a1cb086 commit 47a40aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/components/Profile/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,9 @@ const Profile = ({ disableProfile }) => {
sendMessage({
type: HANDLER_TYPES.REMOVE_PEM_ACCOUNT,
params: selectedRemoveAccount.walletId,
});
}, () => executeAccountSwitch(accounts[0].walletId));
setOpenRemoveModal(false);
setOpen(false);
navigator.navigate('home');
};

return (
Expand Down

0 comments on commit 47a40aa

Please sign in to comment.