From 94ce6c8f064feb25d16fa7fe7e4ab7655c16734b Mon Sep 17 00:00:00 2001 From: Diana Savatina Date: Wed, 18 Dec 2024 16:38:31 +0000 Subject: [PATCH] fix: Error: No matching request found (on Beacon sign) --- apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx | 4 ++-- apps/web/src/components/beacon/SignPayloadRequestModal.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx b/apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx index eecc43f44d..85f13d352d 100644 --- a/apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx +++ b/apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx @@ -28,7 +28,7 @@ import { SignButton } from "../../components/SendFlow/SignButton"; import colors from "../../style/colors"; export const SignPayloadRequestModal = ({ request }: { request: SignPayloadRequestOutput }) => { - const { onClose } = useDynamicModalContext(); + const { goBack } = useDynamicModalContext(); const getAccount = useGetImplicitAccount(); const signerAccount = getAccount(request.sourceAddress); const toast = useToast(); @@ -56,7 +56,7 @@ export const SignPayloadRequestModal = ({ request }: { request: SignPayloadReque description: "Successfully submitted Beacon operation", status: "success", }); - onClose(); + goBack(); }; return ( diff --git a/apps/web/src/components/beacon/SignPayloadRequestModal.tsx b/apps/web/src/components/beacon/SignPayloadRequestModal.tsx index 332ca3724e..72a7f98877 100644 --- a/apps/web/src/components/beacon/SignPayloadRequestModal.tsx +++ b/apps/web/src/components/beacon/SignPayloadRequestModal.tsx @@ -28,7 +28,7 @@ import { useColor } from "../../styles/useColor"; import { SignButton } from "../SendFlow/SignButton"; export const SignPayloadRequestModal = ({ request }: { request: SignPayloadRequestOutput }) => { - const { onClose } = useDynamicModalContext(); + const { goBack } = useDynamicModalContext(); const getAccount = useGetImplicitAccount(); const signerAccount = getAccount(request.sourceAddress); const toast = useToast(); @@ -57,7 +57,7 @@ export const SignPayloadRequestModal = ({ request }: { request: SignPayloadReque description: "Successfully submitted Beacon operation", status: "success", }); - onClose(); + goBack(); }; return (