subos-frontend 1.0.83 → 1.0.84

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
@@ -3008,8 +3008,7 @@ var UpgradeSummary = ({
3008
3008
  proration: 0,
3009
3009
  // No proration for current plan
3010
3010
  planCode: currentPlan.code,
3011
- planCurrency: "USD",
3012
- // Default currency
3011
+ planCurrency: currentPlan.currency,
3013
3012
  contactSupport: false
3014
3013
  };
3015
3014
  setCheckoutInfo(mockCheckoutInfo);
@@ -3043,7 +3042,8 @@ var UpgradeSummary = ({
3043
3042
  const intervalDisplay = displayInfo.planInterval === "MONTHLY" ? "Mo" : "Yr";
3044
3043
  const dueToday = displayInfo.proration > 0 ? displayInfo.proration : displayInfo.planPrice;
3045
3044
  const shouldContactSupport = !!displayInfo.contactSupport;
3046
- const currencySymbol = getCurrencySymbol(displayInfo.planCurrency);
3045
+ const currencyCode = displayInfo.planCurrency || (currentPlan == null ? void 0 : currentPlan.currency) || currency;
3046
+ const currencySymbol = getCurrencySymbol(currencyCode);
3047
3047
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full", children: /* @__PURE__ */ jsxRuntime.jsx(
3048
3048
  "div",
3049
3049
  {
@@ -3332,7 +3332,7 @@ var Pagination = ({
3332
3332
  var DashboardPage = ({
3333
3333
  externalId
3334
3334
  }) => {
3335
- var _a, _b, _c;
3335
+ var _a, _b, _c, _d;
3336
3336
  const subscription = useSubscription();
3337
3337
  const plans = usePlans();
3338
3338
  const lastLoadedIdRef = React10.useRef(null);
@@ -3397,11 +3397,12 @@ var DashboardPage = ({
3397
3397
  isDefault: false,
3398
3398
  intervalCount: 1,
3399
3399
  projectId: "",
3400
- charges: subscription.subscription.plan.charges || []
3400
+ charges: subscription.subscription.plan.charges || [],
3401
+ currency: (_c = subscription.subscription) == null ? void 0 : _c.currency
3401
3402
  } : null,
3402
3403
  externalId,
3403
3404
  onUpgrade: handleUpgrade,
3404
- isVisible: !!plans.selectedPlan || !!((_c = subscription.subscription) == null ? void 0 : _c.plan)
3405
+ isVisible: !!plans.selectedPlan || !!((_d = subscription.subscription) == null ? void 0 : _d.plan)
3405
3406
  }
3406
3407
  )
3407
3408
  ] }) }) });