diff --git a/ondeck/src/app/(dashboard)/tasks/assign/page-client.tsx b/ondeck/src/app/(dashboard)/tasks/assign/page-client.tsx index 78eea06..2c065a5 100644 --- a/ondeck/src/app/(dashboard)/tasks/assign/page-client.tsx +++ b/ondeck/src/app/(dashboard)/tasks/assign/page-client.tsx @@ -194,7 +194,8 @@ export function BulkAssignClient({ users, clients, designations }: BulkAssignCli } } - const handleConfirmGenerate = async () => { + const handleConfirmGenerate = async (event: React.MouseEvent) => { + event.preventDefault() setGenerating(true) try { const res = await fetch('/api/tasks/generate-and-assign', {