0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00

Fixed plan value in paid account home

no issue

- The plan value we get from API for a member is in cents and needs to be converted to dollars before showing.
This commit is contained in:
Rish 2020-05-01 23:20:12 +05:30
parent 21661e8eb8
commit e8b25fc6e4

View file

@ -102,8 +102,8 @@ export default class PaidAccountHomePage extends React.Component {
);
}
getPlanLabel({amount, currency_symbol: currencySymbol = '$', interval}) {
return `${currencySymbol}${amount} / ${interval}`;
getPlanLabel({amount = 0, currency_symbol: currencySymbol = '$', interval}) {
return `${currencySymbol}${amount / 100} / ${interval}`;
}
getCardLabel({defaultCardLast4}) {