Skip to content

Commit

Permalink
Merge branch 'revert-323893c3' into 'stage'
Browse files Browse the repository at this point in the history
Revert "Merge branch 'correctNextPaymentDate' into 'stage'"

See merge request cleeng/gummybear-2!252
  • Loading branch information
iwonakulacz committed Nov 10, 2021
2 parents 323893c + 83bd0b7 commit 847671b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,4 @@ yarn-error.log*

# conf files
/config/environments/staging.js
/config/environments/development.js

.idea/
/config/environments/development.js
12 changes: 4 additions & 8 deletions src/components/CurrentPlan/CurrentPlan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<SubscriptionStyled
key={subItem.offerId}
Expand Down
8 changes: 4 additions & 4 deletions src/components/SwitchPlanPopup/SwitchPlanPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ const SwitchPlanPopup = ({
step={step}
dangerouslySetInnerHTML={{
__html: `${t(`You are about to change your plan from <b>
${fromOffer.offerTitle}</b> to <b>
${fromOffer.offerTitle}</b> to <b>
${toOffer.title} </b>. You will be charged the new price <b>
${toOffer.nextPaymentPrice}${
toOffer.nextPaymentPriceCurrencySymbol
}
}
</b> on your next billing date <b>
${dateFormat(fromOffer.nextPaymentAt)}</b>.`)}
${dateFormat(fromOffer.expiresAt)}</b>.`)}
<br />
${
toOffer.couponNotApplicable
Expand Down Expand Up @@ -133,7 +133,7 @@ const SwitchPlanPopup = ({
{toOffer.nextPaymentPriceCurrencySymbol}
</strong>{' '}
{t('starting from ')}
<strong> {dateFormat(fromOffer.nextPaymentAt)}</strong>.
<strong> {dateFormat(fromOffer.expiresAt)}</strong>.
</TextStyled>
</ContentStyled>
<ButtonWrapperStyled>
Expand Down

0 comments on commit 847671b

Please sign in to comment.