Skip to content

Commit 91b81b9

Browse files
committed
fix(stripe): ts type
1 parent 187876b commit 91b81b9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

lib/stripe.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,8 @@ export async function syncStripeData(stripeCustomerId: string) {
6969
}
7070

7171
const sub = stripeSubscriptions.data[0];
72-
console.log("sub", sub);
7372
const paymentMethod =
74-
sub.default_payment_method &&
75-
typeof sub.default_payment_method !== "string"
76-
? sub.default_payment_method
77-
: null;
73+
sub.default_payment_method as Stripe.PaymentMethod | null;
7874

7975
const subData = {
8076
stripeSubscriptionId: sub.id,

0 commit comments

Comments
 (0)