Skip to content

Commit

Permalink
Aut-2886: fix error causing by ga4 taxonomy level 2 implementation in…
Browse files Browse the repository at this point in the history
…to signed out function
  • Loading branch information
di-fabs committed Jun 11, 2024
1 parent 6bfb39c commit 57dc6b0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/signed-out/signed-out-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ const oplValues = {
};

export function signedOutGet(req: Request, res: Response): void {
const { isAccountCreationJourney } = req.session.user;


const errorCode = xss(req.query.error_code as string);
const errorDescription = xss(req.query.error_description as string);
if (errorCode || errorDescription) {
Expand Down Expand Up @@ -38,6 +37,6 @@ export function signedOutGet(req: Request, res: Response): void {
res.render("signed-out/index.njk", {
signinLink: res.locals.accountManagementUrl,
contentId: oplValues.signOut.contentId,
taxonomyLevel2: isAccountCreationJourney ? "create account" : "sign in",
taxonomyLevel2: "sign out",
});
}

0 comments on commit 57dc6b0

Please sign in to comment.