fix: set default values for miners fee and batching flag
This commit is contained in:
parent
f7ea781f4e
commit
126ee7338e
1 changed files with 7 additions and 2 deletions
|
|
@ -38,9 +38,13 @@ const AdvancedWalletSchema = Yup.object().shape({
|
||||||
|
|
||||||
const OverridesSchema = Yup.object().shape({
|
const OverridesSchema = Yup.object().shape({
|
||||||
cryptoUnits: Yup.string().required(),
|
cryptoUnits: Yup.string().required(),
|
||||||
feeMultiplier: Yup.string(),
|
feeMultiplier: Yup.string()
|
||||||
|
.default(() => '1')
|
||||||
|
.required(),
|
||||||
cryptoCurrency: Yup.string().required(),
|
cryptoCurrency: Yup.string().required(),
|
||||||
allowTransactionBatching: Yup.boolean()
|
allowTransactionBatching: Yup.boolean()
|
||||||
|
.default(() => false)
|
||||||
|
.required()
|
||||||
})
|
})
|
||||||
|
|
||||||
const OverridesDefaults = {
|
const OverridesDefaults = {
|
||||||
|
|
@ -90,9 +94,10 @@ const getAdvancedWalletElements = () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'allowTransactionBatching',
|
name: 'allowTransactionBatching',
|
||||||
|
header: `Allow BTC Transaction Batching`,
|
||||||
size: 'sm',
|
size: 'sm',
|
||||||
stripe: true,
|
stripe: true,
|
||||||
width: 250,
|
width: 260,
|
||||||
view: (_, ite) => {
|
view: (_, ite) => {
|
||||||
return ite.allowTransactionBatching ? 'Yes' : `No`
|
return ite.allowTransactionBatching ? 'Yes' : `No`
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue