mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 03:24:09 +00:00
fix: owner address lookup from tx.confirmation list
This commit is contained in:
parent
72d28470b2
commit
21181400c8
@ -12,7 +12,7 @@ export const generateSignaturesFromTxConfirmations = (
|
|||||||
// The constant parts need to be sorted so that the recovered signers are sorted ascending
|
// The constant parts need to be sorted so that the recovered signers are sorted ascending
|
||||||
// (natural order) by address (not checksummed).
|
// (natural order) by address (not checksummed).
|
||||||
const confirmationsMap = confirmations.reduce((map, obj) => {
|
const confirmationsMap = confirmations.reduce((map, obj) => {
|
||||||
map[obj.owner.address.toLowerCase()] = obj // eslint-disable-line no-param-reassign
|
map[obj.owner.toLowerCase()] = obj // eslint-disable-line no-param-reassign
|
||||||
return map
|
return map
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
|
@ -27,9 +27,7 @@ export const getAwaitingTransactions = (
|
|||||||
if (!transaction.executionTxHash && !isTransactionCancelled) {
|
if (!transaction.executionTxHash && !isTransactionCancelled) {
|
||||||
// Then we check if the waiting confirmations are not from the current user, otherwise, filters this
|
// Then we check if the waiting confirmations are not from the current user, otherwise, filters this
|
||||||
// transaction
|
// transaction
|
||||||
const transactionWaitingUser = transaction.confirmations.filter(
|
const transactionWaitingUser = transaction.confirmations.filter(({ owner }) => owner !== userAccount)
|
||||||
(confirmation) => confirmation.owner && confirmation.owner.address !== userAccount,
|
|
||||||
)
|
|
||||||
|
|
||||||
return transactionWaitingUser.size > 0
|
return transactionWaitingUser.size > 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user