Skip to content

Commit 3d8c617

Browse files
committed
fix: add trim guard to participant name
1 parent 6574c1b commit 3d8c617

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/attribute-input-block.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ export function AttributeInputBlock({
128128
<ul className="divide-border/60 space-y-0.5 px-1">
129129
{block.meta.participants.map((occupant) => {
130130
const isAnonymous =
131-
occupant.name === "" || occupant.name === undefined;
131+
occupant.name?.trim() === "" ||
132+
occupant.name === undefined;
132133
return (
133134
<li
134135
key={occupant.id}

0 commit comments

Comments
 (0)