mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-04 17:04:59 +03: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
@ -146,7 +146,10 @@ class PaidAccountHomePage extends React.Component {
|
||||
}
|
||||
|
||||
getCardLabel({defaultCardLast4}) {
|
||||
return `**** **** **** ${defaultCardLast4}`;
|
||||
if (defaultCardLast4) {
|
||||
return `**** **** **** ${defaultCardLast4}`;
|
||||
}
|
||||
return `Complimentary`;
|
||||
}
|
||||
|
||||
openEditProfile() {
|
||||
|
Loading…
Reference in New Issue
Block a user