@leatcom/portal-sessions 0.0.56 → 0.0.57

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.
@@ -16342,7 +16342,9 @@ function vh() {
16342
16342
  ] }) });
16343
16343
  }
16344
16344
  function Ox() {
16345
- const { t: e } = ze(), { hash: t } = Ku(), { giftcard: n, isLoading: r, mutate: i } = Ld(t), { session: s, mutate: a } = ot(), { onUseGiftcard: l } = fn(), f = xt(), g = (s == null ? void 0 : s.input_data.amount_in_cents) ?? 0, [h] = Se(s.results.remaining_amount ?? g), v = (s == null ? void 0 : s.input_data.allow_multiple_giftcards) ?? !0;
16345
+ const { t: e } = ze(), { hash: t } = Ku(), { giftcard: n, isLoading: r, mutate: i } = Ld(t), { session: s, mutate: a } = ot(), { onUseGiftcard: l } = fn(), f = xt(), g = (s == null ? void 0 : s.input_data.amount_in_cents) ?? 0, [h] = Se(
16346
+ s.results.remaining_amount ? +s.results.remaining_amount : +g
16347
+ ), v = (s == null ? void 0 : s.input_data.allow_multiple_giftcards) ?? !0;
16346
16348
  if (r)
16347
16349
  return /* @__PURE__ */ u.jsx("div", { className: "flex h-screen w-screen items-center justify-center text-core-primary-500", children: /* @__PURE__ */ u.jsx(Mr, { className: "h-[48px] w-[48px]" }) });
16348
16350
  if (!n)
@@ -17504,7 +17506,7 @@ function tE() {
17504
17506
  const { t: e } = ze(), { balance: t, mutate: n } = Kd(), { contact: r } = Tn(), {
17505
17507
  session: { input_data: i, currency: s, events: a },
17506
17508
  mutate: l
17507
- } = ot(), f = i.amount_in_cents ?? 0;
17509
+ } = ot(), f = i.amount_in_cents ? +i.amount_in_cents : 0;
17508
17510
  if (!t || !r)
17509
17511
  return /* @__PURE__ */ u.jsx(u.Fragment, {});
17510
17512
  const g = async () => {