Merge pull request #1071 from josepfo/fix/duplicate-0-conf-limit
fix: disable zero conf limit on cash-out
This commit is contained in:
commit
f2cac6bf26
1 changed files with 1 additions and 20 deletions
|
|
@ -36,12 +36,7 @@ const DenominationsSchema = Yup.object().shape({
|
||||||
.min(1)
|
.min(1)
|
||||||
.max(CURRENCY_MAX)
|
.max(CURRENCY_MAX)
|
||||||
.nullable()
|
.nullable()
|
||||||
.transform(transformNumber),
|
.transform(transformNumber)
|
||||||
zeroConfLimit: Yup.number()
|
|
||||||
.label('0-conf Limit')
|
|
||||||
.required()
|
|
||||||
.min(0)
|
|
||||||
.max(CURRENCY_MAX)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const getElements = (machines, locale = {}, classes) => {
|
const getElements = (machines, locale = {}, classes) => {
|
||||||
|
|
@ -99,20 +94,6 @@ const getElements = (machines, locale = {}, classes) => {
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|
||||||
elements.push({
|
|
||||||
name: 'zeroConfLimit',
|
|
||||||
header: '0-conf Limit',
|
|
||||||
size: 'sm',
|
|
||||||
stripe: true,
|
|
||||||
textAlign: 'right',
|
|
||||||
width: widthsByNumberOfCassettes[maxNumberOfCassettes].zeroConf,
|
|
||||||
input: NumberInput,
|
|
||||||
inputProps: {
|
|
||||||
decimalPlaces: 0
|
|
||||||
},
|
|
||||||
suffix: fiatCurrency
|
|
||||||
})
|
|
||||||
|
|
||||||
return elements
|
return elements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue