From 20eed15f66b3e42659bb23ebbd74539068b229bf Mon Sep 17 00:00:00 2001 From: Abbas Ali Date: Wed, 13 Nov 2024 15:08:09 +0530 Subject: [PATCH] fix: signpage blank screen issue --- packages/fetch-extension/src/pages-new/sign/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/fetch-extension/src/pages-new/sign/index.tsx b/packages/fetch-extension/src/pages-new/sign/index.tsx index 730e65203b..a7af5c2ff6 100644 --- a/packages/fetch-extension/src/pages-new/sign/index.tsx +++ b/packages/fetch-extension/src/pages-new/sign/index.tsx @@ -254,7 +254,11 @@ export const SignPageV2: FunctionComponent = observer(() => { styleProp={{ height: "579px" }} title={"Confirm transaction"} closeClicked={() => { - navigate(-1); + if (window.history.length > 1) { + navigate(-1); + } else { + navigate("/"); + } }} setIsOpen={setIsOpen} isOpen={isOpen}