diff --git a/src/visits/reducers/shortUrlVisits.js b/src/visits/reducers/shortUrlVisits.js index bb562b49..5aedef99 100644 --- a/src/visits/reducers/shortUrlVisits.js +++ b/src/visits/reducers/shortUrlVisits.js @@ -113,8 +113,7 @@ export const getShortUrlVisits = (buildShlinkApiClient) => (shortCode, dates) => (page) => getShortUrlVisits(shortCode, { ...dates, page, itemsPerPage }) .then(prop('data')) - )) - .then(flatten); + )).then(flatten); try { const visits = await loadVisits();