From f8aa274b070334de5f9732882b6117025d2402d4 Mon Sep 17 00:00:00 2001 From: alannnc Date: Wed, 23 Feb 2022 15:51:10 -0700 Subject: [PATCH] Fix billing portal for users without stripeCustomerId (#1936) --- apps/web/ee/lib/stripe/customer.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/apps/web/ee/lib/stripe/customer.ts b/apps/web/ee/lib/stripe/customer.ts index 9f60e1da..ee0097b0 100644 --- a/apps/web/ee/lib/stripe/customer.ts +++ b/apps/web/ee/lib/stripe/customer.ts @@ -46,7 +46,23 @@ export async function getStripeCustomerId(user: UserType): Promise