The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix billing page
Steven Teyf46e2035b50f
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.tsindex 31706ff8a0..a9505268db 100644--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts@@ -21,7 +21,7 @@ export const GET = withWorkspace(async ({ workspace }) => {);return NextResponse.json([- ach,+ ...(ach ? [ach] : []),...paymentMethods.data.filter((method) => method.id !== ach?.id),]);} catch (error) {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.tsxindex 63a252061e..f0e8a50bcc 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@@ -24,7 +24,7 @@ export default function PaymentMethods() {return (<div className="rounded-lg border border-neutral-200 bg-white">- <div className="flex flex-col items-center justify-between gap-y-4 p-6 md:p-8 xl:flex-row">+ <div className="flex flex-col items-start justify-between gap-y-4 p-6 md:flex-row md:items-center md:p-8"><div><h2 className="text-xl font-medium">Payment methods</h2><p className="text-balance text-sm leading-normal text-neutral-500">