fix missing field from merge conflict resolution

This commit is contained in:
k00b 2024-10-21 11:49:16 -05:00
parent 4e61c19bb3
commit b61c957cc7
1 changed files with 2 additions and 1 deletions

View File

@ -293,7 +293,7 @@ function useConfig (walletDef) {
// check if it misses send or receive configs
const isReadyToSend = canSend && isConfigured({ fields: walletDef.fields, config: newConfig, clientOnly: true })
const isReadyToReceive = canReceive && isConfigured({ fields: walletDef.fields, config: newConfig, serverOnly: true })
const { autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority, enabled } = newConfig
const { autoWithdrawThreshold, autoWithdrawMaxFeePercent, autoWithdrawMaxFeeTotal, priority, enabled } = newConfig
// console.log('New client config', newClientConfig)
// console.log('New server config', newServerConfig)
@ -323,6 +323,7 @@ function useConfig (walletDef) {
settings: {
autoWithdrawThreshold: Number(autoWithdrawThreshold == null ? autowithdrawSettings.autoWithdrawThreshold : autoWithdrawThreshold),
autoWithdrawMaxFeePercent: Number(autoWithdrawMaxFeePercent == null ? autowithdrawSettings.autoWithdrawMaxFeePercent : autoWithdrawMaxFeePercent),
autoWithdrawMaxFeeTotal: Number(autoWithdrawMaxFeeTotal == null ? autowithdrawSettings.autoWithdrawMaxFeeTotal : autoWithdrawMaxFeeTotal),
priority,
enabled
},