Skip to content

Commit

Permalink
Stripe ID fix (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinejaussoin authored Sep 29, 2021
1 parent b7d4404 commit 0dfb3ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ if (process.env.NODE_ENV !== 'production') {
if (hasPassword) {
console.error('The following object has a password property: ', body);
}
const hasStripeId = hasField('stripeId', body);
const hasStripeId =
hasField('stripeId', body) && !hasField('identityId', body);
if (hasStripeId) {
console.error(
'The following object has a stripe ID property: ',
Expand Down

0 comments on commit 0dfb3ef

Please sign in to comment.