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.

use human readable country name

Steven Tey427e73aa7a4d
diff --git a/apps/web/app/api/callback/plain/partner/route.ts b/apps/web/app/api/callback/plain/partner/route.ts
index 416f70392c..706a062631 100644
--- a/apps/web/app/api/callback/plain/partner/route.ts
+++ b/apps/web/app/api/callback/plain/partner/route.ts
@@ -1,6 +1,6 @@
import { plain } from "@/lib/plain";
import { prisma } from "@dub/prisma";
-import { currencyFormatter, formatDate } from "@dub/utils";
+import { COUNTRIES, currencyFormatter, formatDate } from "@dub/utils";
import { uiComponent } from "@team-plain/typescript-sdk";
import { NextRequest, NextResponse } from "next/server";
import {
@@ -163,7 +163,7 @@ export async function POST(req: NextRequest) {
plainSpacer,
...plainCopySection({
label: "Partner Country",
- value: country ?? "Unknown",
+ value: country ? COUNTRIES[country] : "Unknown",
}),
...(stripeConnectId
? [