mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-04 11:30:58 +08:00
Merge pull request #435 from zhouyongyou/fix/trader-config-overwrite
fix(margin): correct position sizing formula to prevent insufficient margin errors
This commit is contained in:
@@ -101,8 +101,8 @@ export function TraderConfigModal({
|
||||
})
|
||||
}
|
||||
// 确保旧数据也有默认的 system_prompt_template
|
||||
if (traderData && !traderData.system_prompt_template) {
|
||||
setFormData((prev) => ({
|
||||
if (traderData && traderData.system_prompt_template === undefined) {
|
||||
setFormData(prev => ({
|
||||
...prev,
|
||||
system_prompt_template: 'default',
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user