0
Fork 0
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:
Rishabh 2021-10-22 01:57:13 +05:30
parent d818ca5c4b
commit 1a2c00d914

View file

@ -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 {