fix: typescript error

This commit is contained in:
Tristan Yang
2022-08-15 10:05:03 +08:00
parent 8f44059f52
commit aada865873
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export interface ChatSession {
unread?: number;
}
type Props = {
tempSession: ChatSession;
tempSession?: ChatSession;
};
const SessionList: FC<Props> = ({ tempSession }) => {
const [deleteId, setDeleteId] = useState<number>();