Skip to content

Commit

Permalink
Rename const
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenjaHorbach committed Apr 15, 2024
1 parent 9568c9f commit 7484834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/workspace/FeatureEnabledAccessOrNotFoundWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ function FeatureEnabledAccessOrNotFoundComponent(props: FeatureEnabledAccessOrNo
}, [isPolicyIDInRoute, props.policyID]);

useEffect(() => {
setIsPolicyFeatureEnabled((isCurrencyPolicyFeatureEnabled) => {
setIsPolicyFeatureEnabled((isCurrentPolicyFeatureEnabled) => {
if (prevPendingField !== pendingField || isOffline || !pendingField) {
return isFeatureEnabled;
}
return isCurrencyPolicyFeatureEnabled;
return isCurrentPolicyFeatureEnabled;
});
}, [pendingField, isFeatureEnabled, isOffline, prevPendingField]);

Expand Down

0 comments on commit 7484834

Please sign in to comment.