Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(diamond): fix displaying short names on 1st and 3rd
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Sep 14, 2020
1 parent c524712 commit 47c9cbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/diamond/diamond.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ export class DiamondComponent implements DoCheck, OnInit {
return person.name;
} else if (person.name.length > 15) {
return person.name.split(' ')[index];
} else if (index === 0) {
return person.name;
}
}
return null;
Expand Down

0 comments on commit 47c9cbe

Please sign in to comment.