Skip to content

Commit

Permalink
feat: keep dapps-sheet-modal alive.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016x committed Dec 2, 2024
1 parent e049926 commit 1a3f61d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/mobile/src/screens/Dapps/hooks/useDappView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down Expand Up @@ -502,7 +505,6 @@ export function useOpenDappView() {
closeOpenedDapp,

clearActiveDappOrigin,
closeActiveOpenedDapp,
};
}

Expand Down

0 comments on commit 1a3f61d

Please sign in to comment.