fix: evaluate storedTransactionIndex as number

This commit is contained in:
fernandomg 2020-05-11 23:02:07 -03:00
parent 5c95d1f220
commit 363e9f3888
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ export default handleActions<State, *>(
const storedTransactionIndex = transactionList.findIndex((tx) => tx.safeTxHash === transaction.safeTxHash)
if (!storedTransactionIndex < 0) {
if (storedTransactionIndex === -1) {
return state
}