Remove spurious modal requesting payment info setup

Current check for Stripe account setup is looking for non-existent `stripeAccount` property, causing a spurious modal asking to set up payment info even though it has already been configured. Changing to check the currect property on the `currentUser` object.
This commit is contained in:
Greg Gutkin 2019-05-06 10:57:38 -07:00 committed by Vesa Luusua
parent 0a5d60913e
commit 560c0a05a0

View file

@ -78,7 +78,7 @@ class ModalMissingInformation extends Component {
const emailUnverified = !!currentUser.id && !currentUser.attributes.emailVerified;
const emailVerificationNeeded = hasListingsOrOrders && emailUnverified;
const stripeAccountMissing = !!currentUser.id && !currentUser.stripeAccount;
const stripeAccountMissing = !!currentUser.id && !currentUser.attributes.stripeConnected;
const stripeAccountNeeded = currentUserHasListings && stripeAccountMissing;
// Show reminder