@pradip1995/segment-product-card 0.3.7 → 0.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pradip1995/segment-product-card",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -35,8 +35,8 @@ export default function BeautyProductCard({
35
35
  const originalPrice = variant?.calculated_price?.original_amount
36
36
  const currency = region?.currency_code || variant?.calculated_price?.currency_code || "inr"
37
37
  const countryCode =
38
- countryCodeProp?.toLowerCase() ??
39
- region?.countries?.[0]?.iso_2?.toLowerCase() ??
38
+ countryCodeProp?.toLowerCase() ||
39
+ region?.countries?.[0]?.iso_2?.toLowerCase() ||
40
40
  "in"
41
41
 
42
42
  const discountPct =
@@ -27,8 +27,8 @@ export default function DefaultProductCard({
27
27
  const originalPrice = variant?.calculated_price?.original_amount
28
28
  const currency = region?.currency_code || variant?.calculated_price?.currency_code || "inr"
29
29
  const countryCode =
30
- countryCodeProp?.toLowerCase() ??
31
- region?.countries?.[0]?.iso_2?.toLowerCase() ??
30
+ countryCodeProp?.toLowerCase() ||
31
+ region?.countries?.[0]?.iso_2?.toLowerCase() ||
32
32
  "in"
33
33
 
34
34
  const discountPct =