Add comments

This commit is contained in:
ekzyis 2024-10-19 22:36:26 +02:00
parent 69c80e3d5c
commit 1f9ab08228
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ function extractConfig (fields, config, client) {
const field = fields.find(({ name }) => name === key)
// filter server config which isn't specified as wallet fields
// (we allow autowithdraw members to pass validation)
if (client && key === 'id') return acc
// field might not exist because config.enabled doesn't map to a wallet field
@ -198,7 +199,7 @@ function useConfig (wallet) {
if (transformedConfig) {
newClientConfig = Object.assign(newClientConfig, transformedConfig)
}
// these are stored on the server
delete newClientConfig.autoWithdrawMaxFeePercent
delete newClientConfig.autoWithdrawMaxFeeTotal
} catch {