Skip to content

Commit

Permalink
Call close handovers on unhappy paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl committed Jul 1, 2024
1 parent 39bd920 commit da0c6f8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export function OrderSummary({ subView }: OrderSummaryProps) {
},
},
});
closeHandover();
};

const onFundingRouteExecuted = () => {
Expand All @@ -91,6 +92,9 @@ export function OrderSummary({ subView }: OrderSummaryProps) {
),
});

// eslint-disable-next-line no-debugger
debugger;

const { type, fundingItem } = fundingBalance;

sendProceedToPay(
Expand All @@ -104,7 +108,6 @@ export function OrderSummary({ subView }: OrderSummaryProps) {
signAndProceed(fundingItem.token.address);
return;
}

viewDispatch({
payload: {
type: ViewActions.UPDATE_VIEW,
Expand All @@ -118,6 +121,7 @@ export function OrderSummary({ subView }: OrderSummaryProps) {
},
},
});
closeHandover();
};

const {
Expand Down

0 comments on commit da0c6f8

Please sign in to comment.