Skip to content

Commit

Permalink
closes #100
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Jun 26, 2024
1 parent 38b4026 commit ad9893a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/_shared/components/card-text/card-text.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export class CardTextComponent {
}

private fixText(): string {
if (!this.text()) {
return `_This card has no text entered._`;
}

return (this.text() ?? '')
.split('\n')
.join('<br>')
Expand Down

0 comments on commit ad9893a

Please sign in to comment.