From 3184292fab30b0879df07fc1bb6d534cb261b74c Mon Sep 17 00:00:00 2001 From: amitbadala Date: Fri, 17 Nov 2023 12:49:31 +0530 Subject: [PATCH] Trim the label text --- lib/ts/recipe/emailpassword/components/library/label.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ts/recipe/emailpassword/components/library/label.tsx b/lib/ts/recipe/emailpassword/components/library/label.tsx index 319b04760..11985c7ef 100644 --- a/lib/ts/recipe/emailpassword/components/library/label.tsx +++ b/lib/ts/recipe/emailpassword/components/library/label.tsx @@ -26,7 +26,7 @@ export default function Label({ value, showIsRequired }: LabelProps): JSX.Elemen return (
{t(value)} - {showIsRequired && value !== "" && " *"} + {showIsRequired && value.trim() !== "" && " *"}
); }