Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zepatrik committed Sep 1, 2023
1 parent 77dd1bf commit 0bbf545
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/pkg/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ export const requireNoAuth =
* @param res
* @param next
*/

export const detectLanguage = (
req: Request,
res: Response,
Expand Down
22 changes: 14 additions & 8 deletions src/routes/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,20 @@ export const createSettingsRoute: RouteCreator =
// Render the data using a view (e.g. Jade Template):
res.render("settings", {
layout: "settings",
settingsScreen: UserSettingsScreen({
flow,
logoutUrl,
navClassName: "main-nav",
headerContainerClassName: "spacing-32",
dividerClassName: "divider-left",
settingsCardContainerClassName: "spacing-32",
}),
nodes: flow.ui.nodes,
settingsScreen: UserSettingsScreen(
{
flow,
logoutUrl,
navClassName: "main-nav",
headerContainerClassName: "spacing-32",
dividerClassName: "divider-left",
settingsCardContainerClassName: "spacing-32",
},
{
locale: res.locals.lang,
},
),
})
})
.catch(redirectOnSoftError(res, next, initFlowUrl))
Expand Down

0 comments on commit 0bbf545

Please sign in to comment.