mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Removed welcome message if Stripe is not set up
This commit is contained in:
parent
c28184263d
commit
a0fdb1d21f
1 changed files with 5 additions and 0 deletions
|
@ -219,6 +219,11 @@ const SubscribeButton = ({site, openSubscribe, brandColor}) => {
|
||||||
const AccountWelcome = ({member, site, openSubscribe, brandColor}) => {
|
const AccountWelcome = ({member, site, openSubscribe, brandColor}) => {
|
||||||
const {name, firstname, email} = member;
|
const {name, firstname, email} = member;
|
||||||
const {title: siteTitle} = site;
|
const {title: siteTitle} = site;
|
||||||
|
const {is_stripe_configured: isStripeConfigured} = site;
|
||||||
|
|
||||||
|
if (!isStripeConfigured) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (member.paid) {
|
if (member.paid) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue