diff --git a/apps/spruce/src/components/Spawn/utils/hostUptime.ts b/apps/spruce/src/components/Spawn/utils/hostUptime.ts index 1cba78953..8fe9a7f55 100644 --- a/apps/spruce/src/components/Spawn/utils/hostUptime.ts +++ b/apps/spruce/src/components/Spawn/utils/hostUptime.ts @@ -3,6 +3,7 @@ import { ValidateProps } from "components/SpruceForm"; import { SleepScheduleInput } from "gql/generated/types"; import { MyHost } from "types/spawn"; import { arraySymmetricDifference } from "utils/array"; +import { isProduction } from "utils/environmentVariables"; const daysInWeek = 7; const hoursInDay = 24; @@ -227,6 +228,9 @@ export const matchesDefaultUptimeSchedule = ( }; export const validator = (({ expirationDetails }, errors) => { + // TODO DEVPROD-6908 remove check when beta period ends + if (isProduction()) return errors; + const { hostUptime, noExpiration } = expirationDetails ?? {}; if (!hostUptime || noExpiration === false) return errors;