From 647ba8c19cf85c35b53998c668c0477584365c62 Mon Sep 17 00:00:00 2001 From: Ujwal Kumar Date: Fri, 30 Jun 2023 22:55:48 +0530 Subject: [PATCH] fix: message for mandatory name field on profile (#9861) --- apps/web/pages/settings/my-account/profile.tsx | 3 ++- apps/web/public/static/locales/en/common.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/pages/settings/my-account/profile.tsx b/apps/web/pages/settings/my-account/profile.tsx index d7e1004fc1..2902938cec 100644 --- a/apps/web/pages/settings/my-account/profile.tsx +++ b/apps/web/pages/settings/my-account/profile.tsx @@ -331,7 +331,8 @@ const ProfileForm = ({ avatar: z.string(), name: z .string() - .min(1) + .trim() + .min(1, t("you_need_to_add_a_name")) .max(FULL_NAME_LENGTH_MAX_LIMIT, { message: t("max_limit_allowed_hint", { limit: FULL_NAME_LENGTH_MAX_LIMIT }), }), diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index 08e3236024..24e6602ebf 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -768,6 +768,7 @@ "cal_provide_huddle01_meeting_url": "{{appName}} will provide a Huddle01 web3 video meeting URL.", "cal_provide_teams_meeting_url": "{{appName}} will provide a MS Teams meeting URL. NOTE: MUST HAVE A WORK OR SCHOOL ACCOUNT", "require_payment": "Require Payment", + "you_need_to_add_a_name": "You need to add a name", "commission_per_transaction": "commission per transaction", "event_type_updated_successfully_description": "Your event type has been updated successfully.", "hide_event_type": "Hide event type",