@loafmarkets/ui 0.1.323 → 0.1.325

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.mjs CHANGED
@@ -6581,10 +6581,11 @@ var LoginPopup = ({
6581
6581
  }
6582
6582
  setFundingError("");
6583
6583
  setCryptoFundingLoading(true);
6584
- const fundPromise = onFundWallet({ amount: fundingAmount, mode: "crypto" });
6585
- onClose();
6586
6584
  try {
6587
- await fundPromise;
6585
+ const result = await onFundWallet({ amount: fundingAmount, mode: "crypto" });
6586
+ if (result?.funded) {
6587
+ onClose();
6588
+ }
6588
6589
  } catch (err) {
6589
6590
  console.error("[LoginPopup] crypto fund flow failed", err);
6590
6591
  } finally {
@@ -6884,7 +6885,7 @@ var LoginPopup = ({
6884
6885
  /* @__PURE__ */ jsx("path", { d: "M22 10H18a2 2 0 0 0 0 4h4" })
6885
6886
  ] }),
6886
6887
  /* @__PURE__ */ jsxs("div", { style: { flex: 1 }, children: [
6887
- /* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: cryptoFundingLoading ? "Opening Coinbase\u2026" : "Digital Asset Deposit" }),
6888
+ /* @__PURE__ */ jsx("div", { style: { color: "#fff", fontWeight: 600, fontSize: "0.95rem", marginBottom: "0.25rem" }, children: cryptoFundingLoading ? "Opening\u2026" : "Digital Asset Deposit" }),
6888
6889
  /* @__PURE__ */ jsx("div", { style: { color: "rgba(255,255,255,0.5)", fontSize: "0.8rem" }, children: "Deposit USDC from an exchange or wallet" })
6889
6890
  ] })
6890
6891
  ] }),