Skip to content

Commit a763d2f

Browse files
committed
WorkspaceScheduleForm: fix "a few seconds after start"
1 parent 3faf3c8 commit a763d2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ export const WorkspaceScheduleForm: FC<WorkspaceScheduleFormProps> = ({
277277
}
278278

279279
export const ttlShutdownAt = (formTTL: number): string => {
280-
if (formTTL === 0) {
280+
if (formTTL < 1) {
281+
// Passing an empty value for TTL in the form results in a number that is not zero but less than 1.
281282
return Language.ttlCausesNoShutdownHelperText
282283
} else {
283284
return `${Language.ttlCausesShutdownHelperText} ${dayjs.duration(formTTL, "hours").humanize()} ${

0 commit comments

Comments
 (0)