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,7 +146,10 @@ class PaidAccountHomePage extends React.Component {
}
getCardLabel({defaultCardLast4}) {
return `**** **** **** ${defaultCardLast4}`;
if (defaultCardLast4) {
return `**** **** **** ${defaultCardLast4}`;
}
return `Complimentary`;
}
openEditProfile() {