Skip to content

Commit

Permalink
feature: add fallback keeping compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloiankoski committed Nov 27, 2024
1 parent 39b7ed9 commit 665afb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const SubscriptionManager = ({id, subscription}) => {
const subscriptionStatus = subscription.payment.status?.id || subscription.payment.status.label.toLowerCase();

const showAmountControls = subscription.gateway.can_update;
const showPaymentMethodControls = subscription.gateway.can_update_payment_method;
const showPaymentMethodControls = subscription.gateway.can_update_payment_method ?? showAmountControls;
const showPausingControls =
subscription.gateway.can_pause && !['Quarterly', 'Yearly'].includes(subscription.payment.frequency);

Expand Down

0 comments on commit 665afb8

Please sign in to comment.