From a1cb08638bf9dbe3d9dffa5726d7ef806adc5f7a Mon Sep 17 00:00:00 2001 From: Cancu Date: Mon, 24 Oct 2022 18:05:12 -0300 Subject: [PATCH] redirect to main account when delete the one you are in --- source/components/Profile/index.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/components/Profile/index.jsx b/source/components/Profile/index.jsx index a124e811..f5712f13 100644 --- a/source/components/Profile/index.jsx +++ b/source/components/Profile/index.jsx @@ -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 (