subos-frontend 1.0.86 → 1.0.88

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/dist/index.js CHANGED
@@ -543,8 +543,9 @@ var CurrencyProvider = ({
543
543
  }
544
544
  const data = await response.json();
545
545
  const detectedCountry = data.country;
546
- setCountry(detectedCountry);
547
- const detectedCurrency = mapCountryToCurrency(detectedCountry);
546
+ const normalizedCountry = detectedCountry === "IN" ? "IN" : "US";
547
+ setCountry(normalizedCountry);
548
+ const detectedCurrency = mapCountryToCurrency(normalizedCountry);
548
549
  setCurrencyState(detectedCurrency);
549
550
  } catch (err) {
550
551
  console.error("Error fetching location:", err);
@@ -1956,7 +1957,7 @@ var TransactionItem = ({
1956
1957
  transaction.transactionStatus,
1957
1958
  customStatusColors
1958
1959
  )}`,
1959
- children: transaction.transactionStatus === "payment_failed" ? "Failed" : transaction.transactionStatus === "succeeded" ? "Succeeded" : transaction.transactionStatus === "activated" ? "Activated" : transaction.transactionStatus
1960
+ children: transaction.transactionStatus === "payment_failed" ? "Failed" : transaction.transactionStatus === "succeeded" ? "Succeeded" : transaction.transactionStatus === "activated" ? "Activated" : transaction.transactionStatus === "renewed" ? "Renewed" : transaction.transactionStatus
1960
1961
  }
1961
1962
  ),
1962
1963
  showFields.invoice && showInvoiceButton && transaction.invoice_pdf && /* @__PURE__ */ jsxRuntime.jsx(