tiwiflix-wallet-connector 1.5.2 → 1.5.4
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.esm.js +9 -12
- package/dist/index.js +9 -12
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8355,19 +8355,16 @@ const ConnectButton = ({ connector, onConnect, onDisconnect, onError, className,
|
|
|
8355
8355
|
useEffect(() => {
|
|
8356
8356
|
if (account && fetchBalance) {
|
|
8357
8357
|
setBalanceLoading(true);
|
|
8358
|
-
loadBalance()
|
|
8359
|
-
|
|
8360
|
-
//
|
|
8361
|
-
|
|
8362
|
-
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8358
|
+
loadBalance()
|
|
8359
|
+
.then(() => {
|
|
8360
|
+
// Always stop initializing once balance request completes
|
|
8361
|
+
})
|
|
8362
|
+
.catch(() => {
|
|
8363
|
+
// Ignore errors, we still clear loading states
|
|
8364
|
+
})
|
|
8365
|
+
.finally(() => {
|
|
8366
8366
|
setBalanceLoading(false);
|
|
8367
|
-
|
|
8368
|
-
if (account.chainType === 'ton') {
|
|
8369
|
-
setIsInitializing(false);
|
|
8370
|
-
}
|
|
8367
|
+
setIsInitializing(false);
|
|
8371
8368
|
});
|
|
8372
8369
|
}
|
|
8373
8370
|
else if (account && !fetchBalance) {
|
package/dist/index.js
CHANGED
|
@@ -8357,19 +8357,16 @@ const ConnectButton = ({ connector, onConnect, onDisconnect, onError, className,
|
|
|
8357
8357
|
React.useEffect(() => {
|
|
8358
8358
|
if (account && fetchBalance) {
|
|
8359
8359
|
setBalanceLoading(true);
|
|
8360
|
-
loadBalance()
|
|
8361
|
-
|
|
8362
|
-
//
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8367
|
-
|
|
8360
|
+
loadBalance()
|
|
8361
|
+
.then(() => {
|
|
8362
|
+
// Always stop initializing once balance request completes
|
|
8363
|
+
})
|
|
8364
|
+
.catch(() => {
|
|
8365
|
+
// Ignore errors, we still clear loading states
|
|
8366
|
+
})
|
|
8367
|
+
.finally(() => {
|
|
8368
8368
|
setBalanceLoading(false);
|
|
8369
|
-
|
|
8370
|
-
if (account.chainType === 'ton') {
|
|
8371
|
-
setIsInitializing(false);
|
|
8372
|
-
}
|
|
8369
|
+
setIsInitializing(false);
|
|
8373
8370
|
});
|
|
8374
8371
|
}
|
|
8375
8372
|
else if (account && !fetchBalance) {
|
package/package.json
CHANGED