Skip to content
Snippets Groups Projects
Commit 2e9023cf authored by Joao Ramia's avatar Joao Ramia
Browse files

Remove redundant getLanguage method call from headers

parent ab03d887
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ const createResolvers = (config: ServerConfig) => ({
): Promise<Place[]> =>
config.fake ? Promise.resolve([]) : fetchPlaces(
parameters,
getLanguage(context.language),
context.language || DEFAULT_LANGUAGE,
config.geoapifyApiKey,
),
......@@ -67,7 +67,7 @@ const createResolvers = (config: ServerConfig) => ({
): Promise<PlaceDetails | undefined> =>
config.fake ? Promise.resolve(undefined) : fetchPlaceDetails(
parameters,
getLanguage(context.language),
context.language || DEFAULT_LANGUAGE,
config.geoapifyApiKey,
),
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment