Skip to content

Commit

Permalink
Fix: don't clear pending queue when polling (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored May 8, 2023
1 parent 5e2b78c commit 52bb601
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/hooks/usePendingTxs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ export const usePendingTxsQueue = (): {
const { chainId } = safe
const pendingIds = usePendingTxIds()

const [untrustedQueue, error, loading] = useAsync<TransactionListPage>(() => {
if (!pendingIds.length) return
return getTransactionQueue(chainId, safeAddress, undefined, false)
}, [chainId, safeAddress, pendingIds])
const [untrustedQueue, error, loading] = useAsync<TransactionListPage>(
() => {
if (!pendingIds.length) return
return getTransactionQueue(chainId, safeAddress, undefined, false)
},
[chainId, safeAddress, pendingIds],
false,
)

const pendingTxPage = useMemo(() => {
if (!untrustedQueue || !pendingIds.length) return
Expand Down

0 comments on commit 52bb601

Please sign in to comment.