We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3faf3c8 commit a763d2fCopy full SHA for a763d2f
site/src/components/WorkspaceScheduleForm/WorkspaceScheduleForm.tsx
@@ -277,7 +277,8 @@ export const WorkspaceScheduleForm: FC<WorkspaceScheduleFormProps> = ({
277
}
278
279
export const ttlShutdownAt = (formTTL: number): string => {
280
- if (formTTL === 0) {
+ 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.
282
return Language.ttlCausesNoShutdownHelperText
283
} else {
284
return `${Language.ttlCausesShutdownHelperText} ${dayjs.duration(formTTL, "hours").humanize()} ${
0 commit comments