mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-15 03:01:37 -05:00
Updated duration in months for offer in preview mode
no refs
This commit is contained in:
parent
d818ca5c4b
commit
1a2c00d914
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ export default class OfferPage extends React.Component {
|
|||
} else if (discountDuration === 'forever') {
|
||||
durationLabel = `forever`;
|
||||
} else if (discountDuration === 'repeating') {
|
||||
const durationInMonths = offer.duration_in_months;
|
||||
const durationInMonths = offer.duration_in_months || '';
|
||||
if (durationInMonths === 1) {
|
||||
durationLabel = `for first month`;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue