diff --git a/app/lib/actions/userProfileActions.ts b/app/lib/actions/userProfileActions.ts index 381abbc..6ba6484 100644 --- a/app/lib/actions/userProfileActions.ts +++ b/app/lib/actions/userProfileActions.ts @@ -77,7 +77,7 @@ export const updateUserProfile = withUser(async (user: AuthenticatedUser, prevSt if (!validatedFields.success) { return { errors: validatedFields.error.flatten().fieldErrors, - message: "Validation failed", + message: t("validation-failed"), success: false, }; } diff --git a/app/ui/AccountForm.tsx b/app/ui/AccountForm.tsx index d6e318a..d86ad0e 100644 --- a/app/ui/AccountForm.tsx +++ b/app/ui/AccountForm.tsx @@ -143,14 +143,6 @@ const FormFields: FC = ({ profile, errors, message }) => { -
- {message && ( -

- {message} -

- )} -
- {hasMissingData && (
@@ -160,6 +152,14 @@ const FormFields: FC = ({ profile, errors, message }) => {
)} +
+ {message && ( +

+ {message} +

+ )} +
+