Skip to content

Commit

Permalink
DDCE-4770 : Confirmation page: Onward routes (#538)
Browse files Browse the repository at this point in the history
* DDCE-4770 : Confirmation page: No onward routes for admin staff to start a new export declaration from the confirmation page

* updated the code with isAssistedDigital

* Changed accessible autocomplete version back to 2.0.4

* Removed unnecessary import
  • Loading branch information
Divya-Manivannan-hmrc authored Sep 18, 2024
1 parent b3fc8eb commit c4966b1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ class DeclarationConfirmationController @Inject() (
import request.declarationJourney._
repo.upsert(DeclarationJourney(sessionId, declarationType, isAssistedDigital = request.isAssistedDigital)) map {
_ =>
Redirect(routes.GoodsDestinationController.onPageLoad)
if (request.isAssistedDigital) {
Redirect(routes.ImportExportChoiceController.onPageLoad)
} else {
Redirect(routes.GoodsDestinationController.onPageLoad)
}
}
}
}

val addGoodsToAnExistingDeclaration: Action[AnyContent] = actionProvider.journeyAction.async { implicit request =>
import request.declarationJourney._
Expand Down

0 comments on commit c4966b1

Please sign in to comment.