diff options
Diffstat (limited to 'apps/web/components/create-project-dialog.tsx')
| -rw-r--r-- | apps/web/components/create-project-dialog.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/web/components/create-project-dialog.tsx b/apps/web/components/create-project-dialog.tsx index 468a07d2..5b6af4c8 100644 --- a/apps/web/components/create-project-dialog.tsx +++ b/apps/web/components/create-project-dialog.tsx @@ -34,11 +34,14 @@ export function CreateProjectDialog({ const handleCreate = () => { if (projectName.trim()) { - createProjectMutation.mutate(projectName, { - onSuccess: () => { - handleClose() + createProjectMutation.mutate( + { name: projectName }, + { + onSuccess: () => { + handleClose() + }, }, - }) + ) } } |