ignore ctx is null early return

This commit is contained in:
2025-01-07 23:52:48 +08:00
parent 001eca79f6
commit 20a152b899
14 changed files with 3 additions and 25 deletions

View File

@@ -10,7 +10,6 @@ const WhisperButton = (props: {
setInputMsg: Dispatch<string>;
}) => {
const ctx = useContext(AppContext);
if (!ctx) return <div>error</div>;
const { chatStore } = ctx;
const { inputMsg, setInputMsg } = props;