Skip to content

Commit

Permalink
ER-1533_show resubmitted date title (#829) +semver: patch
Browse files Browse the repository at this point in the history
  • Loading branch information
shomavg authored Sep 23, 2019
1 parent ff31a55 commit 68d420b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/QA/QA.Web/Mappings/ReviewMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ await Task.WhenAll(

var programme = programmeTask.Result;

var currentVacancyResult = currentVacancy.Result;

var historiesVm = GetReviewHistoriesViewModel(reviewHistoryTask.Result);

var vm = new ReviewViewModel();
Expand Down Expand Up @@ -216,15 +218,13 @@ await Task.WhenAll(
vm.FieldIdentifiers = await GetFieldIdentifiersViewModel(review);
vm.ReviewerComment = review.ManualQaComment;
vm.ReviewHistories = historiesVm;
vm.IsResubmission = historiesVm.HasHistories;
vm.IsResubmission = review.SubmissionCount > 1;

vm.ReviewerName = review.ReviewedByUser.Name;
vm.ReviewedDate = review.ReviewedDate.GetValueOrDefault();

vm.ManualOutcome = review.ManualOutcome;

var currentVacancyResult = currentVacancy.Result;

if (review.Status == ReviewStatus.Closed)
{
vm.PageTitle = GetPageTitle(historiesVm, review.Id, review.ManualOutcome, currentVacancyResult);
Expand Down

0 comments on commit 68d420b

Please sign in to comment.