diff --git a/frontend/src/utils/strategyDescriptionNarrative.ts b/frontend/src/utils/strategyDescriptionNarrative.ts index aefb907..1f83fd5 100644 --- a/frontend/src/utils/strategyDescriptionNarrative.ts +++ b/frontend/src/utils/strategyDescriptionNarrative.ts @@ -227,10 +227,8 @@ function describeNode( if (depth === 0 && children.length > 1) { lines.push('다음 조건을 모두 동시에 만족해야 합니다.'); } - children.forEach((child, i) => { - const sub = describeNode(child, signalType, def, depth + 1); - if (children.length > 1) lines.push(`${i + 1})`); - lines.push(...sub); + children.forEach(child => { + lines.push(...describeNode(child, signalType, def, depth + 1)); }); return lines; } @@ -242,10 +240,8 @@ function describeNode( if (depth === 0 && children.length > 1) { lines.push('다음 조건 중 하나라도 만족하면 됩니다.'); } - children.forEach((child, i) => { - const sub = describeNode(child, signalType, def, depth + 1); - if (children.length > 1) lines.push(`${i + 1})`); - lines.push(...sub); + children.forEach(child => { + lines.push(...describeNode(child, signalType, def, depth + 1)); }); return lines; }