fix: breaking changes from yup 0.32.9
This commit is contained in:
parent
a48c474da1
commit
0c7c7ccf42
2 changed files with 9 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue