Clean up global-organization-override #8016
Labels
engineering
Work to be completed by an engineer
experience
Team label to flag issues owned by the Experience Team
Low Priority
Problem statement
We maintain a
global-membership-state
value in LocalStorage for the current user's Organization and aglobal-organization-override
value for impersonated Organization. However, since both values are updated upon impersonation, it may be redundant to maintain both values instead of just using theglobal-membership-state
.At the moment, it doesn't seem to help us to maintain two separate values, especially since we use
memberType
to determine UI visibility across the site.What you need to know
(Note for the future: Can we simplify the reducer logic or even remove the reducer entirely? Does it need to be a reducer?)
Acceptance criteria
global-organization-override
can be removed safelyglobal-organization-override
logicThe text was updated successfully, but these errors were encountered: