Page MenuHomePhabricator

D10649.id35775.diff
No OneTemporary

D10649.id35775.diff

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;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 6, 3:59 PM (19 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2431362
Default Alt Text
D10649.id35775.diff (886 B)

Event Timeline