Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

PaymentMethodsDetails → PaymentMethodTypesList

Steven Tey931c5c431280
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx
index eb767596cd..d2f9db95e0 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/payment-methods.tsx
@@ -93,7 +93,7 @@ export default function PaymentMethods() {
);
}
-const PaymentMethodsDetails = (paymentMethod: Stripe.PaymentMethod) =>
+const PaymentMethodTypesList = (paymentMethod: Stripe.PaymentMethod) =>
[
{
type: "card",
@@ -136,9 +136,9 @@ const PaymentMethodCard = ({
icon: Icon,
iconBgColor,
description,
- } = PaymentMethodsDetails(paymentMethod).find(
+ } = PaymentMethodTypesList(paymentMethod).find(
(method) => method.type === paymentMethod.type,
- ) || PaymentMethodsDetails(paymentMethod)[0];
+ ) || PaymentMethodTypesList(paymentMethod)[0];
return (
<div className="flex items-center justify-between rounded-lg border border-neutral-200 p-4">