Leftovers from the previous commit

This commit is contained in:
Carlos-Mesquita
2024-11-10 06:19:19 +00:00
parent 322d7905c3
commit 4219341951
9 changed files with 26 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ const ExercisePicker: React.FC<ExercisePickerProps> = ({
const [pickerOpen, setPickerOpen] = useState(false);
if (section === undefined) return;
if (section === undefined) return <></>;
const { state, selectedExercises } = section;

View File

@@ -112,7 +112,7 @@ const WordUploader: React.FC<{ module: Module }> = ({ module }) => {
}
}
} catch (error) {
toast.error(`An unknown error has occured while import ${module} exam!`);
toast.error(`Make sure you've imported a valid word document (.docx)!`);
} finally {
dispatch({ type: "UPDATE_MODULE", payload: { updates: { importing: false }, module } })
}