Skip to content

Commit

Permalink
Merge pull request #6 from DEFRA/fix-water-pollution-navigation
Browse files Browse the repository at this point in the history
fix: water pollution journey
  • Loading branch information
daniel78uk authored Nov 21, 2023
2 parents a7c862a + 57160a1 commit 407f054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
12 changes: 1 addition & 11 deletions server/routes/water-quality/location-desc-option.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,7 @@ const handlers = {
post: (request, h) => {
const context = _getContext()

// const locationmapordesc = request.payload['location-map-or-desc']
//
// if (locationmapordesc === 'address') {
// return h.view(Views.WATER_TYPE, { ...context })
// } else if (locationmapordesc === 'map') {
// return h.view(Views.WATER_TYPE, { ...context })
// } else if (locationmapordesc === 'desc') {
// return h.view(Views.FISHING_LOCATION, { ...context })
// }
//
return h.view(Views.WATER_TYPE_REPORTED, {
return h.view(Views.WATER_TYPE_WHEN, {
...context
})
}
Expand Down
1 change: 1 addition & 0 deletions server/routes/water-quality/location-map-or-desc.route.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const handlers = {
const context = _getContext()

const locationmapordesc = request.payload['location-map-or-desc']

if (locationmapordesc === 'address') {
return h.view(Views.WATER_TYPE_LOCATION_ADDRESS_OPTION, { ...context })
} else if (locationmapordesc === 'map') {
Expand Down

0 comments on commit 407f054

Please sign in to comment.