Redirect to dashboard instead of /exam

This commit is contained in:
Tiago Ribeiro
2024-11-14 08:41:16 +00:00
parent 70a461bc69
commit ba71995ace

View File

@@ -29,7 +29,7 @@ interface Props {
hideSidebar?: boolean hideSidebar?: boolean
} }
export default function ExamPage({ page, user, destination = "/exam", hideSidebar = false }: Props) { export default function ExamPage({ page, user, destination = "/", hideSidebar = false }: Props) {
const [variant, setVariant] = useState<Variant>("full"); const [variant, setVariant] = useState<Variant>("full");
const [avoidRepeated, setAvoidRepeated] = useState(false); const [avoidRepeated, setAvoidRepeated] = useState(false);
const [hasBeenUploaded, setHasBeenUploaded] = useState(false); const [hasBeenUploaded, setHasBeenUploaded] = useState(false);