From da0c6f8f714827d23518e23a289badeeed8fde55 Mon Sep 17 00:00:00 2001 From: Mimi Immutable Date: Mon, 1 Jul 2024 14:17:55 +1000 Subject: [PATCH] Call close handovers on unhappy paths --- .../widgets-lib/src/widgets/sale/views/OrderSummary.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/checkout/widgets-lib/src/widgets/sale/views/OrderSummary.tsx b/packages/checkout/widgets-lib/src/widgets/sale/views/OrderSummary.tsx index 3680df1614..37e6e01494 100644 --- a/packages/checkout/widgets-lib/src/widgets/sale/views/OrderSummary.tsx +++ b/packages/checkout/widgets-lib/src/widgets/sale/views/OrderSummary.tsx @@ -70,6 +70,7 @@ export function OrderSummary({ subView }: OrderSummaryProps) { }, }, }); + closeHandover(); }; const onFundingRouteExecuted = () => { @@ -91,6 +92,9 @@ export function OrderSummary({ subView }: OrderSummaryProps) { ), }); + // eslint-disable-next-line no-debugger + debugger; + const { type, fundingItem } = fundingBalance; sendProceedToPay( @@ -104,7 +108,6 @@ export function OrderSummary({ subView }: OrderSummaryProps) { signAndProceed(fundingItem.token.address); return; } - viewDispatch({ payload: { type: ViewActions.UPDATE_VIEW, @@ -118,6 +121,7 @@ export function OrderSummary({ subView }: OrderSummaryProps) { }, }, }); + closeHandover(); }; const {