Recipient Account, Remove Report From Menu, then some cleanups #338

Merged
ameye merged 1 commits from my_wallet_layout into master 2023-07-18 20:20:31 +00:00
+11 -3
View File
@@ -32,7 +32,13 @@ const WalletRoutes = () => {
if (res.data.internal_return < 0) {
setWalletList({ loading: false, data: [] });
} else {
setWalletList({ loading: false, data: res.data?.result_list });
setWalletList({ loading: true, data: [] });
setTimeout(
() =>
setWalletList({ loading: false, data: res.data?.result_list }),
500
);
}
})
.catch(() => {
@@ -60,8 +66,10 @@ const WalletRoutes = () => {
await Promise.all([getWalletList(), getPaymentHistory()]);
};
fetchData();
}, [walletTable, walletList.data]);
if (walletList.loading) {
fetchData();
}
}, [walletTable, walletList.loading]);
console.log(walletTable);
return (