From 5ee2af75dd811142cc5893945d17e8f934c67eb1 Mon Sep 17 00:00:00 2001 From: Tara Zou Date: Fri, 10 May 2024 15:11:25 -0400 Subject: [PATCH] fix format --- src/SelfServe/SqlX/SqlX.rp.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/SelfServe/SqlX/SqlX.rp.ts b/src/SelfServe/SqlX/SqlX.rp.ts index 620f4c911..5ecd76f8e 100644 --- a/src/SelfServe/SqlX/SqlX.rp.ts +++ b/src/SelfServe/SqlX/SqlX.rp.ts @@ -225,7 +225,8 @@ export const getPriceMapAndCurrencyCode = async (map: OfferingIdMap): Promise x.type === "Consumption")?.unitEffectivePriceInBillingCurrency; + const unitEffectivePriceInBillingCurrency = item.prices.find((x) => x.type === "Consumption") + ?.unitEffectivePriceInBillingCurrency; regionPriceMap.set(skuName, unitEffectivePriceInBillingCurrency); } priceMap.set(region, regionPriceMap);