Skip to content

Commit c822438

Browse files
authored
Fixed removed null-coalescing for payment comment (#1609)
1 parent 7227ab9 commit c822438

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/JoinRpg.Services.Impl/PaymentsService.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ private async Task<Comment> AddPaymentCommentAsync(
155155
claim,
156156
CurrentUserId,
157157
Now,
158-
request.CommentText,
158+
// Do not remove null-coalescing here!
159+
// Payment comment is not necessary, but it must not be null to create comment.
160+
request.CommentText ?? "",
159161
true,
160162
null);
161163
comment.Finance = new FinanceOperation

0 commit comments

Comments
 (0)