Skip to content

Commit

Permalink
Fixed removed null-coalescing for payment comment (#1609)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiko1st authored Nov 29, 2021
1 parent 7227ab9 commit c822438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JoinRpg.Services.Impl/PaymentsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ private async Task<Comment> AddPaymentCommentAsync(
claim,
CurrentUserId,
Now,
request.CommentText,
// Do not remove null-coalescing here!
// Payment comment is not necessary, but it must not be null to create comment.
request.CommentText ?? "",
true,
null);
comment.Finance = new FinanceOperation
Expand Down

0 comments on commit c822438

Please sign in to comment.