fix: update cache when response is ok
This commit is contained in:
parent
da5b42025a
commit
688518ec73
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user