diff --git a/apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx b/apps/desktop/src/utils/beacon/SignPayloadRequestModal.tsx index eecc43f44..85f13d352 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 332ca3724..72a7f9887 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 (