From 37de66addc1c531e42896a2c8920d12028c94528 Mon Sep 17 00:00:00 2001 From: "adghayes@gmail.com" Date: Wed, 19 Jul 2023 14:11:38 -0700 Subject: [PATCH] change env variable options & default --- .env | 2 +- libs/types/src/printing.ts | 7 +------ libs/utils/src/environment_variable.ts | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.env b/.env index 35d4a2514a..8ad756b757 100644 --- a/.env +++ b/.env @@ -14,4 +14,4 @@ REACT_APP_VX_SKIP_CAST_VOTE_RECORDS_AUTHENTICATION=FALSE REACT_APP_VX_DISABLE_CVR_ORIGINAL_SNAPSHOTS=FALSE REACT_APP_VX_CONVERTER=ms-sems REACT_APP_VX_SCREEN_ORIENTATION=portrait -REACT_APP_VX_PRECINCT_REPORT_DESTINATION=smartcard +REACT_APP_VX_PRECINCT_REPORT_DESTINATION=thermal-sheet-printer diff --git a/libs/types/src/printing.ts b/libs/types/src/printing.ts index 1f4cc58a97..165d31d89d 100644 --- a/libs/types/src/printing.ts +++ b/libs/types/src/printing.ts @@ -8,13 +8,8 @@ export interface Printer { } export type PrecinctReportDestination = - | 'smartcard' | 'laser-printer' | 'thermal-sheet-printer'; export const PrecinctReportDestinationSchema: z.ZodSchema = - z.union([ - z.literal('smartcard'), - z.literal('laser-printer'), - z.literal('thermal-sheet-printer'), - ]); + z.union([z.literal('laser-printer'), z.literal('thermal-sheet-printer')]); diff --git a/libs/utils/src/environment_variable.ts b/libs/utils/src/environment_variable.ts index d60f24cf5d..d8ef012afe 100644 --- a/libs/utils/src/environment_variable.ts +++ b/libs/utils/src/environment_variable.ts @@ -211,7 +211,7 @@ export function getStringEnvVarConfig( case StringEnvironmentVariableName.PRECINCT_REPORT_DESTINATION: return { name, - defaultValue: 'smartcard', + defaultValue: 'thermal-sheet-printer', zodSchema: PrecinctReportDestinationSchema, }; /* c8 ignore next 2 */