Skip to content

Commit 0a92a50

Browse files
authored
Prevent infinite loop in usePaymentFailHandler effect (#9041)
1 parent 3767a17 commit 0a92a50

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: dev
3+
4+
Prevent infinite loop in usePaymentFailHandler effect

client/checkout/blocks/hooks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const usePaymentFailHandler = ( onCheckoutFail, emitResponse ) => {
5555
messageContext: emitResponse.noticeContexts.PAYMENTS,
5656
};
5757
} ),
58-
[ onCheckoutFail, emitResponse ]
58+
[ onCheckoutFail, emitResponse?.noticeContexts?.PAYMENTS ]
5959
);
6060
};
6161

0 commit comments

Comments
 (0)