From 2e02824a850f9666ca6b5e04ee1f3ae28c146f3e Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 14 Jan 2022 19:39:58 +0530 Subject: [PATCH] Refined offer label UI on account home page closes https://github.com/TryGhost/Team/issues/1195 --- ghost/portal/src/components/pages/AccountHomePage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/portal/src/components/pages/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage.js index 97615087dc..d8f08a2a70 100644 --- a/ghost/portal/src/components/pages/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage.js @@ -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; }