Skip to content

Commit

Permalink
VKT(Frontend): Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Oct 30, 2024
1 parent a8565a7 commit 9c9d39a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions frontend/packages/vkt/src/hooks/useKoodistoMunicipalities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ const getCodes: () => Array<string> = () => {
);
};

export const useKoodistoMunicipalities = () => {
return getCodes();
};

export const useMunicipalityOptions = () => {
const translate = useKoodistoMunicipalitiesTranslation();

Expand All @@ -30,9 +26,8 @@ export const useMunicipalityOptions = () => {
value,
label: translate(value),
}));
const locale = new Intl.Locale('fi-FI');

return options.sort((a, b) => a.label.localeCompare(b.label, locale));
return options.sort((a, b) => a.label.localeCompare(b.label, 'fi-FI'));
}, [translate]);

return sortedOptions;
Expand Down
2 changes: 2 additions & 0 deletions frontend/packages/vkt/src/tests/msw/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const handlers = [
http.get(APIEndpoints.ClerkUser, ({ cookies }) => {
const user: ClerkUser = {
oid: '1.2.246.562.10.00000000001',
isAdmin: true,
isExaminer: false,
};

return new Response(cookies.noAuth ? 'null' : JSON.stringify(user));
Expand Down

0 comments on commit 9c9d39a

Please sign in to comment.