@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 +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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 {
|