The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add Object.hasOwn
Pedro Ladeirae5f705885477
diff --git a/apps/web/lib/actions/partners/update-partner-profile.ts b/apps/web/lib/actions/partners/update-partner-profile.tsindex d57fdee816..2aba1cbc08 100644--- a/apps/web/lib/actions/partners/update-partner-profile.ts+++ b/apps/web/lib/actions/partners/update-partner-profile.ts@@ -104,7 +104,7 @@ export const updatePartnerProfileAction = authPartnerActionClient);}- if (!country || !(country in COUNTRIES)) {+ if (!country || !Object.hasOwn(COUNTRIES, country)) {throw new Error("Select a valid country.");}}