fix: message for mandatory name field on profile (#9861)

This commit is contained in:
Ujwal Kumar
2023-06-30 13:25:48 -04:00
committed by GitHub
parent e5ca77eb93
commit 647ba8c19c
2 changed files with 3 additions and 1 deletions
@@ -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 }),
}),
@@ -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",