Skip to content

Commit

Permalink
Rename function to isUpdateSubscriberStatusNeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
RodriSanchez1 committed Jul 17, 2023
1 parent 8cbc32b commit b48e8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/PremiumFeature/PremiumFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
showPremiumRequired
} from '../../providers/SubscriptionProvider/SubscriptionProvider.actions';

function isUpdateSubscriptionNeeded(lastUpdated) {
function isUpdateSubscriberStatusNeeded(lastUpdated) {
if (!lastUpdated) return true;
const MAX_HOURS_DIFFERENCE = 12;
const actualTime = new Date().getTime();
Expand All @@ -26,7 +26,7 @@ function PremiumFeature({
lastUpdated
}) {
const captured = event => {
if (isUpdateSubscriptionNeeded(lastUpdated)) {
if (isUpdateSubscriberStatusNeeded(lastUpdated)) {
const requestOrigin = 'Function: captured - Component: PremiumFeature';
updateIsSubscribed(requestOrigin);
updateIsInFreeCountry();
Expand Down

0 comments on commit b48e8da

Please sign in to comment.