@loafmarkets/ui 0.1.323 → 0.1.324

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
@@ -6607,10 +6607,11 @@ var LoginPopup = ({
6607
6607
  }
6608
6608
  setFundingError("");
6609
6609
  setCryptoFundingLoading(true);
6610
- const fundPromise = onFundWallet({ amount: fundingAmount, mode: "crypto" });
6611
- onClose();
6612
6610
  try {
6613
- await fundPromise;
6611
+ const result = await onFundWallet({ amount: fundingAmount, mode: "crypto" });
6612
+ if (result?.funded) {
6613
+ onClose();
6614
+ }
6614
6615
  } catch (err) {
6615
6616
  console.error("[LoginPopup] crypto fund flow failed", err);
6616
6617
  } finally {