From 6d0576a71469af7eb85b61f3cc78b39ceaec9be9 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Fri, 25 Mar 2022 12:59:05 -1000 Subject: [PATCH] fix name --- src/libs/actions/PersistedRequests.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/actions/PersistedRequests.js b/src/libs/actions/PersistedRequests.js index cde903b89c21..260526c13be2 100644 --- a/src/libs/actions/PersistedRequests.js +++ b/src/libs/actions/PersistedRequests.js @@ -4,7 +4,7 @@ import lodashUnionWith from 'lodash/unionWith'; import ONYXKEYS from '../../ONYXKEYS'; import RetryCounter from '../RetryCounter'; -const persistedRequestsRetryCount = new RetryCounter(); +const persistedRequestsRetryCounter = new RetryCounter(); let persistedRequests = []; Onyx.connect({ @@ -14,7 +14,7 @@ Onyx.connect({ function clear() { Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, []); - persistedRequestsRetryCount.clear(); + persistedRequestsRetryCounter.clear(); } /** @@ -29,7 +29,7 @@ function save(requestsToPersist) { * @param {Object} requestToRemove */ function remove(requestToRemove) { - persistedRequestsRetryCount.remove(requestToRemove); + persistedRequestsRetryCounter.remove(requestToRemove); persistedRequests = _.reject(persistedRequests, persistedRequest => _.isEqual(persistedRequest, requestToRemove)); Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, persistedRequests); } @@ -46,7 +46,7 @@ function getAll() { * @returns {Number} */ function incrementRetries(request) { - return persistedRequestsRetryCount.incrementRetries(request); + return persistedRequestsRetryCounter.incrementRetries(request); } export {