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:
parent
6106219123
commit
14d92e1c52
1 changed files with 4 additions and 1 deletions
|
@ -146,8 +146,11 @@ class PaidAccountHomePage extends React.Component {
|
|||
}
|
||||
|
||||
getCardLabel({defaultCardLast4}) {
|
||||
if (defaultCardLast4) {
|
||||
return `**** **** **** ${defaultCardLast4}`;
|
||||
}
|
||||
return `Complimentary`;
|
||||
}
|
||||
|
||||
openEditProfile() {
|
||||
this.context.onAction('switchPage', {
|
||||
|
|
Loading…
Add table
Reference in a new issue