From 1a3f61d56e4eda8e974974ed5b94bff4b1b1b37b Mon Sep 17 00:00:00 2001 From: richardo2016x Date: Tue, 3 Dec 2024 05:10:36 +0800 Subject: [PATCH] feat: keep dapps-sheet-modal alive. --- apps/mobile/src/screens/Dapps/hooks/useDappView.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/mobile/src/screens/Dapps/hooks/useDappView.ts b/apps/mobile/src/screens/Dapps/hooks/useDappView.ts index 8635acef7..544e58eab 100644 --- a/apps/mobile/src/screens/Dapps/hooks/useDappView.ts +++ b/apps/mobile/src/screens/Dapps/hooks/useDappView.ts @@ -286,8 +286,11 @@ export function useOpenDappView() { const result = { willClose: false }; if (openingActiveDappRef.current) return result; - // toggleShowSheetModal('openedDappWebviewSheetModalRef', // OPEN_DAPP_VIEW_INDEXES.collapsed); - toggleShowSheetModal('openedDappWebviewSheetModalRef', false); + toggleShowSheetModal( + 'openedDappWebviewSheetModalRef', + OPEN_DAPP_VIEW_INDEXES.collapsed, + ); + // toggleShowSheetModal('openedDappWebviewSheetModalRef', false); if (ctx?.dappOrigin && ctx.webviewId) { setLastWebViewIdByDappOrigin(ctx.dappOrigin, { @@ -502,7 +505,6 @@ export function useOpenDappView() { closeOpenedDapp, clearActiveDappOrigin, - closeActiveOpenedDapp, }; }