ignore ctx is null early return
This commit is contained in:
@@ -22,7 +22,6 @@ interface EditMessageProps {
|
||||
}
|
||||
export function EditMessage(props: EditMessageProps) {
|
||||
const ctx = useContext(AppContext);
|
||||
if (!ctx) return <div>error</div>;
|
||||
|
||||
const { showEdit, setShowEdit, chat } = props;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user