mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Refined offer label UI on account home page
closes https://github.com/TryGhost/Team/issues/1195
This commit is contained in:
parent
bd291b71bf
commit
2e02824a85
@ -171,7 +171,7 @@ function getOfferLabel({offer, price, subscriptionStartDate}) {
|
||||
let offerEndDate = new Date(offerStartDate.setMonth(offerStartDate.getMonth() + durationInMonths));
|
||||
durationLabel = `Ends ${getDateString(offerEndDate)}`;
|
||||
}
|
||||
offerLabel = `${getUpdatedOfferPrice({offer, price, useFormatted: true})}/${price.interval}${durationLabel ? `— ${durationLabel}` : ``}`;
|
||||
offerLabel = `${getUpdatedOfferPrice({offer, price, useFormatted: true})}/${price.interval}${durationLabel ? ` — ${durationLabel}` : ``}`;
|
||||
}
|
||||
return offerLabel;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user