fix: managed event type string (#12891)

* fix: managed event type string

* Update EventTypeSingleLayout.tsx

Updated the translation string with the right value.

* Update EventTypeSingleLayout.tsx

Bring back formMethods variable.

---------

Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
Ritik SharmaandAlex van Andel authored and GitHub committed 2023-12-20 14:09:39 +00:00
1 parent 95cc0eeaae
commit 2693b30c51
1 file changed
+1 -1
@@ -207,7 +207,7 @@ function EventTypeSingleLayout({
icon: Users,
info: `${t(eventType.schedulingType?.toLowerCase() ?? "")}${
isManagedEventType
? ` - ${t("count_members", { count: formMethods.watch("children").length || 0 })}`
? ` - ${t("number_member", { count: formMethods.watch("children").length || 0 })}`
: ""
}`,
});