Skip to content

Commit dda2caa

Browse files
committed
fix(web): match sanitized schedule validation messages
Keep weekday-specific window errors visible after applying the shared sanitizer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3a586f29-42a9-436f-8ec3-e84b097c8a3b
1 parent 7d6ee76 commit dda2caa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎web/app/pages/settings/index.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,9 @@ function scheduleWindowError(index: number): string | null {
643643
? errorMessages.value.get('windows')
644644
: []
645645
if (messages.length === 0) return null
646-
const message = messages.find((x) => x.includes(`day_of_week ${index}`))
646+
const message = messages.find((x) => x.includes(`Day of week ${index}`))
647647
return message
648-
? message.replace(`day_of_week ${index}`, getWeekday(index))
648+
? message.replace(`Day of week ${index}`, getWeekday(index))
649649
: null
650650
}
651651

0 commit comments

Comments
 (0)