make sure autowithdraw members are numbers

This commit is contained in:
k00b 2024-10-31 18:25:15 -05:00
parent 14ab51a730
commit dccfd21be4
1 changed files with 2 additions and 2 deletions

View File

@ -114,8 +114,8 @@ export function siftConfig (fields, config) {
}
if (['autoWithdrawMaxFeePercent', 'autoWithdrawThreshold', 'autoWithdrawMaxFeeTotal'].includes(key)) {
sifted.serverOnly[key] = value
sifted.settings = { ...sifted.settings, [key]: value }
sifted.serverOnly[key] = Number(value)
sifted.settings = { ...sifted.settings, [key]: Number(value) }
continue
}