Skip to content

Commit 1e5fd0c

Browse files
rbranrbran
authored andcommitted
Missing subtitle fixed
1 parent da5a3df commit 1e5fd0c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

MeetUpPlanner/Client/Shared/MeetUpCard.razor

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@
4545
}
4646
<div class="card-body">
4747
<h6 class="text-muted card-subtitle mb-2">
48-
@CalendarItem.LevelDescription - @CalendarItem.Tempo
48+
@if (!String.IsNullOrEmpty(CalendarItem.SubTitle))
49+
{
50+
@CalendarItem.SubTitle
51+
}
52+
else
53+
{
54+
@($"{CalendarItem.LevelDescription} - {CalendarItem.Tempo}")
55+
}
4956
</h6>
5057
<h5 class="card-title">
5158
@CalendarItem.Title
@@ -104,7 +111,7 @@
104111
@if (CalendarItem.IsKidsOrYouth())
105112
{
106113
<hr />
107-
<small><b>Trainer:in(nen)</b>@CalendarItem.Trainer</small>
114+
<small><b>Trainer:in(nen)</b> @CalendarItem.Trainer</small>
108115
}
109116
<hr />
110117
@if (CalendarItem.CommentsList.Count() > 0)

0 commit comments

Comments
 (0)