Skip to content

Commit

Permalink
fix(payments): Manage button from Subscription management page does n…
Browse files Browse the repository at this point in the history
…othing when clicked
  • Loading branch information
xlisachan authored and julianpoy committed Jul 26, 2023
1 parent 5fbca8b commit aee571a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,12 @@ export const ActionButton = ({
<button
data-testid="reveal-payment-modal-button"
className="button settings-button error-button"
onClick={revealFixPaymentModal}
onClick={(e) => {
// The stopPropagation prevents the "onDismiss" function to be called as soon
// as the FixPaymentModal initially loads.
e.stopPropagation();
revealFixPaymentModal();
}}
>
<Localized id="pay-update-manage-btn">
<span className="manage-button" data-testid="manage-button">
Expand Down

0 comments on commit aee571a

Please sign in to comment.