fix: update cache when response is ok

This commit is contained in:
Sebastian 2023-01-10 11:50:43 -03:00
parent da5b42025a
commit 688518ec73
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -58,10 +58,12 @@ export function PendingTransactions({ goToTransaction }: Props): VNode {
? cache.tx
: state.response.transactions.filter((t) => t.pending);
if (state && !state.hasError) {
cache.tx = transactions;
}
if (!transactions.length) {
return <Fragment />;
}
cache.tx = transactions;
return (
<PendingTransactionsView
goToTransaction={goToTransaction}