@kimafinance/kima-transaction-widget 1.2.24-beta.1 → 1.2.25-beta.1
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 +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8803,7 +8803,7 @@ var TransferWidget = function TransferWidget(_ref) {
|
|
|
8803
8803
|
React.useEffect(function () {
|
|
8804
8804
|
dispatch(setTheme(theme));
|
|
8805
8805
|
}, [theme]);
|
|
8806
|
-
var updatePendingTxs = function
|
|
8806
|
+
var updatePendingTxs = React.useCallback(function () {
|
|
8807
8807
|
try {
|
|
8808
8808
|
var _temp9 = _catch(function () {
|
|
8809
8809
|
return Promise.resolve(fetchWrapper.get(nodeProviderQuery + "/kima-finance/kima-blockchain/transaction/get_htlc_transaction/" + walletAddress)).then(function (result) {
|
|
@@ -8835,6 +8835,9 @@ var TransferWidget = function TransferWidget(_ref) {
|
|
|
8835
8835
|
dispatch(setPendingTxs(txData.filter(function (tx) {
|
|
8836
8836
|
return tx.status === 'Pending' || tx.status === 'Confirming';
|
|
8837
8837
|
}).length));
|
|
8838
|
+
console.log(txData.filter(function (tx) {
|
|
8839
|
+
return tx.status === 'Pending' || tx.status === 'Confirming';
|
|
8840
|
+
}).length, txData);
|
|
8838
8841
|
}
|
|
8839
8842
|
});
|
|
8840
8843
|
}, function (e) {
|
|
@@ -8844,14 +8847,16 @@ var TransferWidget = function TransferWidget(_ref) {
|
|
|
8844
8847
|
} catch (e) {
|
|
8845
8848
|
return Promise.reject(e);
|
|
8846
8849
|
}
|
|
8847
|
-
};
|
|
8850
|
+
}, [nodeProviderQuery, walletAddress]);
|
|
8848
8851
|
React.useEffect(function () {
|
|
8849
8852
|
if (!nodeProviderQuery || sourceChain !== exports.SupportNetworks.BTC || !walletAddress) return;
|
|
8850
8853
|
updatePendingTxs();
|
|
8851
8854
|
var timerId = setInterval(function () {
|
|
8852
8855
|
updatePendingTxs();
|
|
8853
8856
|
}, 10000);
|
|
8857
|
+
console.log(timerId);
|
|
8854
8858
|
return function () {
|
|
8859
|
+
console.log('clearInterval', timerId);
|
|
8855
8860
|
clearInterval(timerId);
|
|
8856
8861
|
};
|
|
8857
8862
|
}, [sourceChain, nodeProviderQuery, walletAddress]);
|