X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4b961d16b8f8ef8afbd13697a79fe4684acd0416..ee68b6a5e88e383dbc2126124eef0f8c6ba37d2d:/src/store/projects/project-update-actions.ts diff --git a/src/store/projects/project-update-actions.ts b/src/store/projects/project-update-actions.ts index b92069762a..2449b9ce9b 100644 --- a/src/store/projects/project-update-actions.ts +++ b/src/store/projects/project-update-actions.ts @@ -39,7 +39,7 @@ export const updateProject = (project: Partial) => return updatedProject; } catch (e) { const error = getCommonResourceServiceError(e); - if (error === CommonResourceServiceError.UNIQUE_VIOLATION) { + if (error === CommonResourceServiceError.UNIQUE_NAME_VIOLATION) { dispatch(stopSubmit(PROJECT_UPDATE_FORM_NAME, { name: 'Project with the same name already exists.' } as FormErrors)); } return ;