Merge pull request #1315 from siiky/feat/lam-575/validate-blockcypher-value
fix: check confidence level in [0,100]
This commit is contained in:
commit
d1c57b7421
1 changed files with 2 additions and 1 deletions
|
|
@ -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')
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue