Skip to content

Commit

Permalink
redirect to main account when delete the one you are in
Browse files Browse the repository at this point in the history
  • Loading branch information
Cancuuu committed Oct 24, 2022
1 parent 88c2792 commit a1cb086
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 a1cb086

Please sign in to comment.