diff --git a/lib/reducers/policies-reducer.js b/lib/reducers/policies-reducer.js --- a/lib/reducers/policies-reducer.js +++ b/lib/reducers/policies-reducer.js @@ -14,6 +14,7 @@ forcePolicyAcknowledgmentActionType, } from '../types/policy-types.js'; import type { BaseAction } from '../types/redux-types.js'; +import { usingCommServicesAccessToken } from '../utils/services-utils.js'; function policiesReducer( state: UserPolicies, @@ -49,10 +50,13 @@ }; } else if ( action.type === logOutActionTypes.started || - action.type === logOutActionTypes.success || - action.type === deleteKeyserverAccountActionTypes.success + action.type === logOutActionTypes.success ) { return {}; + } else if (action.type === deleteKeyserverAccountActionTypes.success) { + if (!usingCommServicesAccessToken) { + return {}; + } } return state; }