diff --git a/src/components/forms/evaluation-form.tsx b/src/components/forms/evaluation-form.tsx index c72d8c3..2ea7bad 100644 --- a/src/components/forms/evaluation-form.tsx +++ b/src/components/forms/evaluation-form.tsx @@ -37,6 +37,7 @@ import { ThumbsDown, } from 'lucide-react' import { cn } from '@/lib/utils' +import { toast } from 'sonner' // Define criterion type from the evaluation form JSON interface Criterion { @@ -186,8 +187,10 @@ export function EvaluationForm({ // Invalidate queries and redirect utils.assignment.myAssignments.invalidate() + toast.success('Evaluation submitted successfully!') + startTransition(() => { - router.push(`/jury/projects/${assignmentId.split('-')[0]}/evaluation`) + router.push('/jury/assignments') router.refresh() }) } catch (error) {