fix: set default values for miners fee and batching flag

This commit is contained in:
José Oliveira 2022-03-03 16:51:48 +00:00
parent f7ea781f4e
commit 126ee7338e

View file

@ -38,9 +38,13 @@ const AdvancedWalletSchema = Yup.object().shape({
const OverridesSchema = Yup.object().shape({
cryptoUnits: Yup.string().required(),
feeMultiplier: Yup.string(),
feeMultiplier: Yup.string()
.default(() => '1')
.required(),
cryptoCurrency: Yup.string().required(),
allowTransactionBatching: Yup.boolean()
.default(() => false)
.required()
})
const OverridesDefaults = {
@ -90,9 +94,10 @@ const getAdvancedWalletElements = () => {
},
{
name: 'allowTransactionBatching',
header: `Allow BTC Transaction Batching`,
size: 'sm',
stripe: true,
width: 250,
width: 260,
view: (_, ite) => {
return ite.allowTransactionBatching ? 'Yes' : `No`
},