Skip to content

Commit 080766f

Browse files
committed
fix(lib): remove white spaces from the full name pipe
* All parts of full name are joined with space, but if there is some part of the name missing (e.g. middle name), there are more white spaces in the full name.
1 parent 168fa5b commit 080766f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/perun/pipes/src/lib/user-full-name.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export class UserFullNamePipe implements PipeTransform {
1414
value.titleAfter,
1515
];
1616

17-
return nameParts.join(' ');
17+
return nameParts.filter((part) => !!part).join(' ');
1818
}
1919
}

0 commit comments

Comments
 (0)