fix: breaking changes from yup 0.32.9

This commit is contained in:
José Oliveira 2021-03-11 19:18:08 +00:00 committed by Josh Harvey
parent a48c474da1
commit 0c7c7ccf42
2 changed files with 9 additions and 3 deletions

View file

@ -318,7 +318,8 @@ const getOverridesSchema = (values, rawData) => {
}
})
.label('Crypto Currencies')
.required(),
.required()
.min(1),
cashIn: Yup.number()
.label('Cash-in')
.min(0)
@ -423,7 +424,8 @@ const getListCommissionsSchema = () => {
.required(),
cryptoCurrencies: Yup.array()
.label('Crypto Currency')
.required(),
.required()
.min(1),
cashIn: Yup.number()
.label('Cash-in')
.min(0)

View file

@ -142,10 +142,12 @@ const LocaleSchema = Yup.object().shape({
languages: Yup.array()
.label('Languages')
.required()
.min(1)
.max(4),
cryptoCurrencies: Yup.array()
.label('Crypto Currencies')
.required()
.min(1)
})
const OverridesSchema = Yup.object().shape({
@ -157,10 +159,12 @@ const OverridesSchema = Yup.object().shape({
.required(),
languages: Yup.array()
.label('Languages')
.required(),
.required()
.min(1),
cryptoCurrencies: Yup.array()
.label('Crypto Currencies')
.required()
.min(1)
})
const localeDefaults = {