Re-enable the noEmptyError middleware

This commit is contained in:
Bubka 2023-11-02 15:04:40 +01:00
parent 62accb20fc
commit 791421b105

View File

@ -1,5 +1,4 @@
export default function noEmptyError({ to, next }) {
next()
if (to.params.err == undefined) {
// return to home if no err object is provided to prevent an empty error message
next({ name: 'accounts' });