diff --git a/src/components/organisms/settings/organization/addOrganization.tsx b/src/components/organisms/settings/organization/addOrganization.tsx index 30e43de18..b31098813 100644 --- a/src/components/organisms/settings/organization/addOrganization.tsx +++ b/src/components/organisms/settings/organization/addOrganization.tsx @@ -47,20 +47,13 @@ export const AddOrganization = () => { const onSubmit = async (values: FormValues) => { setCreatingOrganization(true); -<<<<<<< HEAD const error = await createOrganization(values.name); -======= - const error = await OrganizationsService.create(values.name); ->>>>>>> bedaaf92 (feat(UI-1167): organizations fetching and management) if (error) { addToast({ message: tErrors("errorCreateNewOrganization"), type: "error", }); -<<<<<<< HEAD setCreatingOrganization(false); -======= ->>>>>>> bedaaf92 (feat(UI-1167): organizations fetching and management) return; } @@ -79,14 +72,10 @@ export const AddOrganization = () => { isError={!!errors.name} isRequired label={t("form.organizationName")} -<<<<<<< HEAD {...register("name", { required: t("nameRequired"), validate: validateOrganizationName, })} -======= - {...register("name")} ->>>>>>> bedaaf92 (feat(UI-1167): organizations fetching and management) /> {errors?.name?.message as string}