Skip to content

Commit

Permalink
Revert mistakingly pushed commit
Browse files Browse the repository at this point in the history
Original message: "add type for `lang` property on ZetkinUser, return this language first for the language prop if there is a value"

This reverts commit edea59a.
  • Loading branch information
richardolsson committed Sep 8, 2023
1 parent edea59a commit 2aac002
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/next.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const scaffold =
const result = (await wrapped(ctx)) || {};

// Figure out browser's preferred language
const lang = ctx.user?.lang || getBrowserLanguage(contextFromNext.req);
const lang = getBrowserLanguage(contextFromNext.req);

// TODO: Respect scope from options again
//const localeScope = (options?.localeScope ?? []).concat(['misc', 'zui']);
Expand Down
1 change: 0 additions & 1 deletion src/utils/types/zetkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ export interface ZetkinUser {
first_name: string;
id: number;
is_superuser?: boolean;
lang: string | null;
last_name: string;
username: string;
}
Expand Down

0 comments on commit 2aac002

Please sign in to comment.