Skip to content

Commit

Permalink
Merge pull request #167 from hmrc/DL-11569
Browse files Browse the repository at this point in the history
DL-11569 link error msg to input field
  • Loading branch information
pankaj2453 authored Sep 1, 2023
2 parents 4245655 + 82337be commit 81cae28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/GainController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class GainController @Inject()(calcConnector: CalculatorConnector,
Future.successful(
BadRequest(
disposalDateView(errors.copy(errors = errors.errors.map { error =>
if (error.key == "") error.copy(key = "disposalDateDay") else error
if (error.key == "") error.copy(key = "disposalDate.day") else error
}))
)
)},
Expand Down

0 comments on commit 81cae28

Please sign in to comment.