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.

lowercase currency

Steven Teya133747ac64d
diff --git a/apps/web/lib/integrations/shopify/create-sale.ts b/apps/web/lib/integrations/shopify/create-sale.ts
index 2629447ac9..e984829856 100644
--- a/apps/web/lib/integrations/shopify/create-sale.ts
+++ b/apps/web/lib/integrations/shopify/create-sale.ts
@@ -31,7 +31,7 @@ export async function createShopifySale({
current_subtotal_price_set: { shop_money: shopMoney },
} = order;
- const currency = shopMoney.currency_code;
+ const currency = shopMoney.currency_code.toLowerCase();
const amount = Number(shopMoney.amount) * 100;
const eventId = nanoid(16);