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
|
? cache.tx
|
||||||
: state.response.transactions.filter((t) => t.pending);
|
: state.response.transactions.filter((t) => t.pending);
|
||||||
|
|
||||||
|
if (state && !state.hasError) {
|
||||||
|
cache.tx = transactions;
|
||||||
|
}
|
||||||
if (!transactions.length) {
|
if (!transactions.length) {
|
||||||
return <Fragment />;
|
return <Fragment />;
|
||||||
}
|
}
|
||||||
cache.tx = transactions;
|
|
||||||
return (
|
return (
|
||||||
<PendingTransactionsView
|
<PendingTransactionsView
|
||||||
goToTransaction={goToTransaction}
|
goToTransaction={goToTransaction}
|
||||||
|
Loading…
Reference in New Issue
Block a user