Skip to content

Commit

Permalink
Resolve bug in Review Approver (#7874)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Mar 14, 2024
1 parent b3fe8eb commit 3d6cacc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
string approver = null;
if (reviewIsApproved)
{
var changeAction = Model.ReviewContent.Review.ChangeHistory.First(_ => _.ChangeAction == ReviewChangeAction.Approved);
var changeAction = Model.ReviewContent.Review.ChangeHistory.FirstOrDefault(_ => _.ChangeAction == ReviewChangeAction.Approved);
if (changeAction != null)
{
approver = changeAction.ChangedBy;
Expand Down

0 comments on commit 3d6cacc

Please sign in to comment.