mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
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:
parent
0a5d60913e
commit
560c0a05a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue