Skip to content

Commit

Permalink
Refactor: Change to use the selected default period in notice (#7434)
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloiankoski authored Jul 9, 2024
1 parent c34d3a8 commit 04ef772
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ const Edit = ({attributes, setAttributes}) => {
const displayFixedMessage = isFixedAmount && !customAmount;
const displayFixedRecurringMessage =
isRecurring &&
recurringOptInDefaultBillingPeriod !== 'one-time' &&
(displayFixedMessage ||
isRecurringAdmin ||
Number(recurringLengthOfTime) > 0 ||
Expand Down Expand Up @@ -134,7 +135,7 @@ const Edit = ({attributes, setAttributes}) => {
<RecurringAmountMessage
isFixedAmount={isFixedAmount}
fixedAmount={amountFormatted}
period={recurringBillingPeriodOptions[0]}
period={recurringOptInDefaultBillingPeriod}
frequency={parseInt(recurringBillingInterval)}
installments={parseInt(recurringLengthOfTime)}
/>
Expand Down

0 comments on commit 04ef772

Please sign in to comment.