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

Handled card info for complimentary plan

closes https://github.com/TryGhost/members.js/issues/52

- No card details are on file for complimentary plan, show Complimentary instead
This commit is contained in:
Rish 2020-07-07 19:56:25 +05:30
parent 6106219123
commit 14d92e1c52

View file

@ -146,8 +146,11 @@ class PaidAccountHomePage extends React.Component {
}
getCardLabel({defaultCardLast4}) {
if (defaultCardLast4) {
return `**** **** **** ${defaultCardLast4}`;
}
return `Complimentary`;
}
openEditProfile() {
this.context.onAction('switchPage', {