mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
Improved function name
This commit is contained in:
parent
5208a266e4
commit
a2c1f5ce7d
1 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ export const processReferrersStats = (visits) =>
|
|||
visits,
|
||||
);
|
||||
|
||||
const processLocationStats = (propertyName) => (visits) =>
|
||||
const buildLocationStatsProcessorByProperty = (propertyName) => (visits) =>
|
||||
reduce(
|
||||
(stats, { visitLocation }) => {
|
||||
const notHasCountry = isNil(visitLocation)
|
||||
|
@ -90,6 +90,6 @@ const processLocationStats = (propertyName) => (visits) =>
|
|||
visits,
|
||||
);
|
||||
|
||||
export const processCountriesStats = processLocationStats('countryName');
|
||||
export const processCountriesStats = buildLocationStatsProcessorByProperty('countryName');
|
||||
|
||||
export const processCitiesStats = processLocationStats('cityName');
|
||||
export const processCitiesStats = buildLocationStatsProcessorByProperty('cityName');
|
||||
|
|
Loading…
Reference in a new issue