Skip to content

Commit

Permalink
Trim the label text
Browse files Browse the repository at this point in the history
  • Loading branch information
amitbadala committed Nov 17, 2023
1 parent 52a9725 commit 3184292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ts/recipe/emailpassword/components/library/label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Label({ value, showIsRequired }: LabelProps): JSX.Elemen
return (
<div data-supertokens="label">
{t(value)}
{showIsRequired && value !== "" && " *"}
{showIsRequired && value.trim() !== "" && " *"}
</div>
);
}

0 comments on commit 3184292

Please sign in to comment.