Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx committed Dec 16, 2024
1 parent 5ac9013 commit 9cb2242
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1079,17 +1079,13 @@ export const useTransactionHistory = (

const updatePendingTransaction = useCallback(
async (tx: MergedTransaction) => {
if (
tx.destination &&
tx.sender &&
tx.destination.toLowerCase() !== tx.sender.toLowerCase()
) {
if (address?.toLowerCase() !== tx.sender?.toLowerCase()) {
return updatePendingReceiverTransaction(tx)
}

updatePendingSenderTransaction(tx)
},
[updatePendingReceiverTransaction, updatePendingSenderTransaction]
[address, updatePendingReceiverTransaction, updatePendingSenderTransaction]
)

return {
Expand Down

0 comments on commit 9cb2242

Please sign in to comment.