fix: ?? 연산자 우선순위

This commit is contained in:
2025-08-20 12:59:40 +00:00
parent 2b376b6aab
commit 4bb940c8c5
9 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -510,7 +510,7 @@ async function reloadCommandList() {
const turnTime = parseTime(result.turnTime);
let nextTurnTime = new Date(turnTime);
const autorunLimitYearMonth = result.autorun_limit ?? yearMonth - 1;
const autorunLimitYearMonth = (result.autorun_limit ?? yearMonth) - 1;
const [autorunLimitYear, autorunLimitMonth] = parseYearMonth(autorunLimitYearMonth);
reservedCommandList.value = [];
+1 -1
View File
@@ -509,7 +509,7 @@ function updateCommandList() {
const turnTime = parseTime(props.turnTime);
let nextTurnTime = new Date(turnTime);
const autorunLimitYearMonth = autorun_limit.value ?? yearMonth - 1;
const autorunLimitYearMonth = (autorun_limit.value ?? yearMonth) - 1;
const [autorunLimitYear, autorunLimitMonth] = parseYearMonth(autorunLimitYearMonth);
for (const obj of props.turn) {