fix: remove explicit cast to string for msg.content

This commit is contained in:
Paul Makles
2022-05-21 16:59:34 +01:00
parent 73d51a3e29
commit 6fcdbd1cef
4 changed files with 8 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ interface Props {
}
export default function MessageEditor({ message, finish }: Props) {
const [content, setContent] = useState((message.content as string) ?? "");
const [content, setContent] = useState(message.content ?? "");
const { focusTaken } = useContext(IntermediateContext);
const { openScreen } = useIntermediate();