Allow a fallback for storybook building

This commit is contained in:
Gabe Kangas 2022-08-09 20:10:51 -07:00
parent 2bf7eb8c22
commit 423ed88fbd
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

View File

@ -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 = () => {