make sure autowithdraw members are numbers
This commit is contained in:
parent
14ab51a730
commit
dccfd21be4
|
@ -114,8 +114,8 @@ export function siftConfig (fields, config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['autoWithdrawMaxFeePercent', 'autoWithdrawThreshold', 'autoWithdrawMaxFeeTotal'].includes(key)) {
|
if (['autoWithdrawMaxFeePercent', 'autoWithdrawThreshold', 'autoWithdrawMaxFeeTotal'].includes(key)) {
|
||||||
sifted.serverOnly[key] = value
|
sifted.serverOnly[key] = Number(value)
|
||||||
sifted.settings = { ...sifted.settings, [key]: value }
|
sifted.settings = { ...sifted.settings, [key]: Number(value) }
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue