diff --git a/src/visits/ShortUrlVisits.js b/src/visits/ShortUrlVisits.js index cd14bc22..566074df 100644 --- a/src/visits/ShortUrlVisits.js +++ b/src/visits/ShortUrlVisits.js @@ -76,6 +76,7 @@ const ShortUrlVisits = ({ processStatsFromVisits }) => class ShortUrlVisits exte const { os, browsers, referrers, countries, cities, citiesForMap } = processStatsFromVisits( { id: this.memoizationId, visits } ); + const mapLocations = values(citiesForMap); return (
@@ -109,14 +110,9 @@ const ShortUrlVisits = ({ processStatsFromVisits }) => class ShortUrlVisits exte ( - - ), - ]} + extraHeaderContent={ + [ () => mapLocations.length > 0 && ] + } sortingItems={{ name: 'City name', amount: 'Visits amount',