explicit default values
This commit is contained in:
parent
3112fc30d8
commit
7eb668e0e2
|
@ -38,7 +38,7 @@ export default function WalletSettings () {
|
|||
// 'enabled' and 'priority' which are not defined in wallet.fields.
|
||||
return {
|
||||
...acc,
|
||||
[field.name]: wallet?.config?.[field.name] || ''
|
||||
[field.name]: wallet?.config?.[field.name] || field.defaultValue || ''
|
||||
}
|
||||
}, wallet?.config)
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ export const fields = [
|
|||
type: 'text',
|
||||
help: 'the blink wallet to use for sending (BTC or USD for stablesats)',
|
||||
placeholder: 'BTC',
|
||||
defaultValue: 'BTC',
|
||||
clear: true,
|
||||
autoComplete: 'off',
|
||||
clientOnly: true,
|
||||
|
@ -49,7 +50,7 @@ export const fields = [
|
|||
label: 'wallet type',
|
||||
type: 'text',
|
||||
help: 'the blink wallet to use for receiving (only BTC available)',
|
||||
value: 'BTC',
|
||||
defaultValue: 'BTC',
|
||||
clear: true,
|
||||
autoComplete: 'off',
|
||||
optional: 'for receiving',
|
||||
|
|
Loading…
Reference in New Issue