Skip to content

Commit

Permalink
change env variable options & default
Browse files Browse the repository at this point in the history
  • Loading branch information
adghayes committed Jul 19, 2023
1 parent 6185c29 commit 37de66a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 1 addition & 6 deletions libs/types/src/printing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ export interface Printer {
}

export type PrecinctReportDestination =
| 'smartcard'
| 'laser-printer'
| 'thermal-sheet-printer';

export const PrecinctReportDestinationSchema: z.ZodSchema<PrecinctReportDestination> =
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')]);
2 changes: 1 addition & 1 deletion libs/utils/src/environment_variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 37de66a

Please sign in to comment.