Skip to content

Commit

Permalink
Fix username pipe div text assign (#8737)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomgny committed Jul 5, 2023
1 parent 8a0769a commit 10afd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/lib/pipes/user-initial.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class InitialUsernamePipe implements PipeTransform {
if (user) {
const initialResult = this.getInitialUserName(user.firstName || user.displayName || user.username, user.lastName, delimiter);
const div = document.createElement('div');
div.innerText = initialResult;
div.textContent = initialResult;
div.dataset.automationId = 'user-initials-image';
div.className = className;

Expand Down

0 comments on commit 10afd50

Please sign in to comment.