From 82337be7bfd4d9a30a7d55d6a5241eaf2fd16155 Mon Sep 17 00:00:00 2001 From: Pankaj Khare <12529426+pankaj2453@users.noreply.github.com> Date: Wed, 30 Aug 2023 13:23:34 +0100 Subject: [PATCH] DL-11569 link error msg to input field --- app/controllers/GainController.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/GainController.scala b/app/controllers/GainController.scala index 1e2cd18..4264144 100644 --- a/app/controllers/GainController.scala +++ b/app/controllers/GainController.scala @@ -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 })) ) )},