We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 451c500 commit 7b1353aCopy full SHA for 7b1353a
Snittlistan.Web/Commands/PublishRosterMailCommandHandler.cs
@@ -43,7 +43,7 @@ protected override async Task<UpdateRosterEmail> CreateEmail(HandlerContext<Comm
43
}
44
else
45
{
46
- int? oilPatternId = null;
+ int oilPatternId = 0;
47
if (roster.OilPattern is not null)
48
49
int.TryParse(
@@ -53,11 +53,11 @@ protected override async Task<UpdateRosterEmail> CreateEmail(HandlerContext<Comm
53
54
matchHead = new(
55
"Lag",
56
- roster.Team,
+ roster.Team ?? "?",
57
"Motståndare",
58
- roster.Opponent,
59
- roster.Location,
60
- oilPatternId ?? 0,
+ roster.Opponent ?? "?",
+ roster.Location ?? "?",
+ oilPatternId == 0 ? null : oilPatternId,
61
roster.OilPattern?.Name ?? "Ingen oljeprofil",
62
roster.Date);
63
0 commit comments