Skip to content

Commit

Permalink
fix: create a new stripe customer if new user
Browse files Browse the repository at this point in the history
  • Loading branch information
JanssenBrm committed Aug 20, 2023
1 parent 162a4fd commit 4edf84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class AuthService {
map((data: DocumentSnapshot<UserData>) => data.data()),
switchMap((data: UserData) => (!data ? from(this.updateUser(user, null)) : of(data))),
switchMap((data: UserData) =>
data.customerId === ''
data.customerId !== ''
? of(data)
: from(
this.stripeService.createCustomer(data, user.email).then((id) => ({
Expand Down

0 comments on commit 4edf84a

Please sign in to comment.