mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-13 19:16:52 +01:00
Update WalletTransactions.tsx
This commit is contained in:
parent
dcd2023815
commit
2317d0a4cf
1 changed files with 4 additions and 3 deletions
|
@ -160,12 +160,13 @@ const WalletTransactions: React.FC<WalletTransactionsProps> = ({ route }) => {
|
|||
}
|
||||
}, [wallet, isElectrumDisabled, isLoading, saveToDisk, pageSize]);
|
||||
|
||||
const debouncedRefresh = useDebounce(refreshTransactions, 500);
|
||||
|
||||
useEffect(() => {
|
||||
if (wallet && wallet.getLastTxFetch() === 0 && !isLoading) {
|
||||
const debouncedRefresh = useDebounce(refreshTransactions, 500);
|
||||
debouncedRefresh();
|
||||
debouncedRefresh().finally(() => setIsLoading(false));
|
||||
}
|
||||
}, [wallet, isLoading, refreshTransactions]);
|
||||
}, [wallet, isLoading, debouncedRefresh]);
|
||||
|
||||
useEffect(() => {
|
||||
if (wallet) {
|
||||
|
|
Loading…
Add table
Reference in a new issue