Browse Source

Allow a fallback for storybook building

pull/2032/head
Gabe Kangas 3 years ago
parent
commit
423ed88fbd
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 2
      web/components/modals/NameChangeModal.tsx

2
web/components/modals/NameChangeModal.tsx

@ -28,7 +28,7 @@ function UserColor(props: { color: number }): React.ReactElement {
export default function NameChangeModal(props: Props) { export default function NameChangeModal(props: Props) {
const websocketService = useRecoilValue<WebsocketService>(websocketServiceAtom); const websocketService = useRecoilValue<WebsocketService>(websocketServiceAtom);
const chatDisplayName = useRecoilValue<string>(chatDisplayNameAtom); const chatDisplayName = useRecoilValue<string>(chatDisplayNameAtom);
const chatDisplayColor = useRecoilValue<number>(chatDisplayColorAtom); const chatDisplayColor = useRecoilValue<number>(chatDisplayColorAtom) || 0;
const [newName, setNewName] = useState<any>(chatDisplayName); const [newName, setNewName] = useState<any>(chatDisplayName);
const handleNameChange = () => { const handleNameChange = () => {

Loading…
Cancel
Save