diff --git a/client/src/helpers/helpers.js b/client/src/helpers/helpers.js index 8d68794c..8f9556af 100644 --- a/client/src/helpers/helpers.js +++ b/client/src/helpers/helpers.js @@ -263,9 +263,9 @@ export const normalizeTextarea = text => text && text.replace(/[;, ]/g, '\n').sp export const normalizeTopClients = clients => clients.reduce((accumulator, clientObj) => { const { name, count } = clientObj; - const idToCountMap = accumulator; - idToCountMap[name] = count; - return idToCountMap; + // eslint-disable-next-line no-param-reassign + accumulator[name] = count; + return accumulator; }, {}); export const getClientInfo = (clients, ip) => {