Merge pull request #1315 from siiky/feat/lam-575/validate-blockcypher-value

fix: check confidence level in [0,100]
This commit is contained in:
Rafael Taranto 2022-07-26 15:26:42 +01:00 committed by GitHub
commit d1c57b7421

View file

@ -43,7 +43,8 @@ export default {
.required('The token is required'),
confidenceFactor: Yup.number('The confidence factor must be a number')
.integer('The confidence factor must be an integer')
.positive('The confidence factor must be positive')
.min(0, 'The confidence factor must be non-negative')
.max(100, 'The confidence factor must be less than or equal to 100')
.required('The confidence factor is required')
})
}