Skip to content

Commit aee571a

Browse files
xlisachanjulianpoy
authored andcommitted
fix(payments): Manage button from Subscription management page does nothing when clicked
1 parent 5fbca8b commit aee571a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/fxa-payments-server/src/routes/Subscriptions/ActionButton.tsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,12 @@ export const ActionButton = ({
7878
<button
7979
data-testid="reveal-payment-modal-button"
8080
className="button settings-button error-button"
81-
onClick={revealFixPaymentModal}
81+
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+
}}
8287
>
8388
<Localized id="pay-update-manage-btn">
8489
<span className="manage-button" data-testid="manage-button">

0 commit comments

Comments
 (0)