Skip to content
Prev Previous commit
Next Next commit
fix: Access this env var safely as it may not exist
This commit was made without the use of generative AI.

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
  • Loading branch information
Dadadah committed Feb 22, 2026
commit 9283a0c65295f0220983bd4ef8f18ab52d450645
2 changes: 1 addition & 1 deletion packages/client/components/common/lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
* Enable video allows the web client to enable video and screensharing
*/
ENABLE_VIDEO:
(import.meta.env.VITE_CFG_ENABLE_VIDEO as string).toLowerCase() == "true",
((import.meta.env.VITE_CFG_ENABLE_VIDEO as string) ?? "").toLowerCase() == "true",
/**
* Session ID to set during development.
*/
Expand Down
Loading