Skip to content

Commit

Permalink
Tidy up validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozzey committed Dec 30, 2024
1 parent 978f89c commit 5710b16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/return-logs.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function submitEdit(request, h) {
if (!howToEdit) {
return h.view('return-logs/edit.njk', {
activeNavBar: 'search',
error: 'Select how would you like to edit this return',
error: { text: 'Select how would you like to edit this return' },
...pageData
})
}
Expand Down
4 changes: 2 additions & 2 deletions app/views/return-logs/edit.njk
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
titleText: "There is a problem",
errorList: [
{
text: error,
href: '#'
text: error.text,
href: '#howToEdit'
}
]
}) }}
Expand Down

0 comments on commit 5710b16

Please sign in to comment.