diff --git a/apps/envited.ascs.digital/modules/Profile/Profile.tsx b/apps/envited.ascs.digital/modules/Profile/Profile.tsx index 8bab3cc6..61d95f0b 100644 --- a/apps/envited.ascs.digital/modules/Profile/Profile.tsx +++ b/apps/envited.ascs.digital/modules/Profile/Profile.tsx @@ -5,6 +5,7 @@ import { Checkboxes, DragAndDropField, Heading, + LoadingIndicator, TextField, TextareaField, } from '@envited-marketplace/design-system' @@ -51,7 +52,7 @@ export const Profile: FC = ({ profile, memberCategories }) => { control, handleSubmit, getValues, - formState: { errors }, + formState: { errors, isSubmitting }, } = useForm({ resolver: zodResolver(ProfileSchema), defaultValues: { @@ -81,6 +82,8 @@ export const Profile: FC = ({ profile, memberCategories }) => { } const updateProfileAction: SubmitHandler = async data => { + // return new Promise(resolve => setTimeout(resolve, 2000)) + try { await updateProfileForm(data) success('Profile is updated') @@ -375,8 +378,9 @@ export const Profile: FC = ({ profile, memberCategories }) => {