We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fbca8b commit aee571aCopy full SHA for aee571a
packages/fxa-payments-server/src/routes/Subscriptions/ActionButton.tsx
@@ -78,7 +78,12 @@ export const ActionButton = ({
78
<button
79
data-testid="reveal-payment-modal-button"
80
className="button settings-button error-button"
81
- onClick={revealFixPaymentModal}
+ onClick={(e) => {
82
+ // The stopPropagation prevents the "onDismiss" function to be called as soon
83
+ // as the FixPaymentModal initially loads.
84
+ e.stopPropagation();
85
+ revealFixPaymentModal();
86
+ }}
87
>
88
<Localized id="pay-update-manage-btn">
89
<span className="manage-button" data-testid="manage-button">
0 commit comments