Skip to content

Commit

Permalink
Merge pull request #1185 from DFE-Digital/feature/dao-revoked-due-to-…
Browse files Browse the repository at this point in the history
…policy

small change to error message for DAO revoked date
  • Loading branch information
paullocknimble authored Sep 25, 2024
2 parents 48c6826 + 49a4034 commit 3ac88ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ string IDateValidationMessageProvider.AllMissing(string displayName)
string idRaw = Request.RouteValues["id"] as string;
int id = int.Parse(idRaw ?? string.Empty);
AdvisoryBoardDecision decision = GetDecisionFromSession(id);
return $"Enter the date when the conversion was {decision.Decision.ToDescription().ToLowerInvariant()}";
return decision.Decision == AdvisoryBoardDecisions.DAORevoked ? "Enter the date the DAO was revoked" : $"Enter the date when the conversion was {decision.Decision.ToDescription().ToLowerInvariant()}";
}


Expand Down

0 comments on commit 3ac88ac

Please sign in to comment.