Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix: provide fallback empty object for appearance variables

Gabe Kangas07aed4beee41
diff --git a/web/components/theme/Theme.tsx b/web/components/theme/Theme.tsx
index ec93567373..901d1ff529 100644
--- a/web/components/theme/Theme.tsx
+++ b/web/components/theme/Theme.tsx
@@ -8,7 +8,7 @@ export const Theme: FC = () => {
const clientConfig = useRecoilValue<ClientConfig>(clientConfigStateAtom);
const { appearanceVariables, customStyles } = clientConfig;
- const appearanceVars = Object.keys(appearanceVariables)
+ const appearanceVars = Object.keys(appearanceVariables || {})
.filter(variable => !!appearanceVariables[variable])
.map(variable => `--${variable}: ${appearanceVariables[variable]}`);