Correctly set a validator status as not required (#410)

This commit is contained in:
Gerardo Nardelli 2020-07-27 16:23:08 -03:00 committed by GitHub
parent fa6b37db1c
commit 8cf73d572c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,7 +118,10 @@ export const getConfirmationsForTx = async (
status: VALIDATOR_CONFIRMATION_STATUS.NOT_REQUIRED status: VALIDATOR_CONFIRMATION_STATUS.NOT_REQUIRED
})) }))
validatorConfirmations = [...validatorConfirmations, ...notRequiredConfirmations] notRequiredConfirmations.forEach(validatorData => {
const index = validatorConfirmations.findIndex(e => e.validator === validatorData.validator)
validatorConfirmations[index] = validatorData
})
signatureCollectedResult = true signatureCollectedResult = true
} }