We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 187876b commit 91b81b9Copy full SHA for 91b81b9
1 file changed
lib/stripe.ts
@@ -69,12 +69,8 @@ export async function syncStripeData(stripeCustomerId: string) {
69
}
70
71
const sub = stripeSubscriptions.data[0];
72
- console.log("sub", sub);
73
const paymentMethod =
74
- sub.default_payment_method &&
75
- typeof sub.default_payment_method !== "string"
76
- ? sub.default_payment_method
77
- : null;
+ sub.default_payment_method as Stripe.PaymentMethod | null;
78
79
const subData = {
80
stripeSubscriptionId: sub.id,
0 commit comments