Skip to content

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

Allow a fallback for storybook building

Gabe Kangas7677ef1c07a0
diff --git a/web/components/modals/NameChangeModal.tsx b/web/components/modals/NameChangeModal.tsx
index 3942124b9d..060ac05b6e 100644
--- a/web/components/modals/NameChangeModal.tsx
+++ b/web/components/modals/NameChangeModal.tsx
@@ -28,7 +28,7 @@ function UserColor(props: { color: number }): React.ReactElement {
export default function NameChangeModal(props: Props) {
const websocketService = useRecoilValue<WebsocketService>(websocketServiceAtom);
const chatDisplayName = useRecoilValue<string>(chatDisplayNameAtom);
- const chatDisplayColor = useRecoilValue<number>(chatDisplayColorAtom);
+ const chatDisplayColor = useRecoilValue<number>(chatDisplayColorAtom) || 0;
const [newName, setNewName] = useState<any>(chatDisplayName);
const handleNameChange = () => {