diff --git a/src/router/index.js b/src/router/index.js index 229c51da4..eb4942d6a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -45,7 +45,7 @@ const routes = [ // If we already have our route, go to it. if (router.hasRoute(to.query.fmgPage)) { // Since our route is already in scope, we can grab the component from it and call the arePagePrerequisitesValid function. - let arePagePrerequisitesValid = router + const arePagePrerequisitesValid = router .getRoutes() .filter((x) => x.name === to.query.fmgPage)[0] .components.default.methods.arePagePrerequisitesValid(); @@ -69,7 +69,7 @@ const routes = [ // Call the next components arePagePrerequisitesValid method before load. // If it returns false, use the 404 logic. - let nextComponent = await router + const nextComponent = await router .getRoutes() .filter((x) => x.name === routeData[0].name)[0] .components.default();