0
Fork 0
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:
Peter Zimon 2020-09-08 13:51:31 +02:00
parent c28184263d
commit a0fdb1d21f

View file

@ -219,6 +219,11 @@ const SubscribeButton = ({site, openSubscribe, brandColor}) => {
const AccountWelcome = ({member, site, openSubscribe, brandColor}) => {
const {name, firstname, email} = member;
const {title: siteTitle} = site;
const {is_stripe_configured: isStripeConfigured} = site;
if (!isStripeConfigured) {
return null;
}
if (member.paid) {
return null;