diff --git a/.gitignore b/.gitignore index 48637df..73ba2f8 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,4 @@ yarn-error.log* # conf files /config/environments/staging.js -/config/environments/development.js - -.idea/ +/config/environments/development.js \ No newline at end of file diff --git a/src/components/CurrentPlan/CurrentPlan.js b/src/components/CurrentPlan/CurrentPlan.js index cd8cfa3..d83e3b6 100644 --- a/src/components/CurrentPlan/CurrentPlan.js +++ b/src/components/CurrentPlan/CurrentPlan.js @@ -85,15 +85,11 @@ class CurrentPlan extends PureComponent { ) : ( <> {subscriptions.map(subItem => { - const description = + const description = `${ subItem.status === 'active' - ? `${t('Next payment is on')} ${dateFormat( - subItem.nextPaymentAt - )}` - : `${t('This plan will expire on')} ${dateFormat( - subItem.expiresAt - )}`; - + ? t('Next payment is on') + : t('This plan will expire on') + } ${dateFormat(subItem.expiresAt)}`; return ( - ${fromOffer.offerTitle} to + ${fromOffer.offerTitle} to ${toOffer.title} . You will be charged the new price ${toOffer.nextPaymentPrice}${ toOffer.nextPaymentPriceCurrencySymbol - } + } on your next billing date - ${dateFormat(fromOffer.nextPaymentAt)}.`)} + ${dateFormat(fromOffer.expiresAt)}.`)}
${ toOffer.couponNotApplicable @@ -133,7 +133,7 @@ const SwitchPlanPopup = ({ {toOffer.nextPaymentPriceCurrencySymbol} {' '} {t('starting from ')} - {dateFormat(fromOffer.nextPaymentAt)}. + {dateFormat(fromOffer.expiresAt)}.