fix: zero conf limit validation schema
This commit is contained in:
parent
dae1f3782f
commit
d714e0c7cb
1 changed files with 2 additions and 1 deletions
|
|
@ -21,9 +21,10 @@ const WalletSchema = Yup.object().shape({
|
||||||
zeroConf: Yup.string().required(),
|
zeroConf: Yup.string().required(),
|
||||||
zeroConfLimit: Yup.number()
|
zeroConfLimit: Yup.number()
|
||||||
.integer()
|
.integer()
|
||||||
.required()
|
.required('Zero Conf Limit is a required field')
|
||||||
.min(0)
|
.min(0)
|
||||||
.max(CURRENCY_MAX)
|
.max(CURRENCY_MAX)
|
||||||
|
.transform(value => (isNaN(value) ? 0 : value))
|
||||||
})
|
})
|
||||||
|
|
||||||
const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
const getElements = (cryptoCurrencies, accounts, onChange, wizard = false) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue