mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
client: Don't override organization plans with personal plan (#53842)
This PR makes it so we don't override organization plans with the user's personal plan. If an organization is selected and does not have a plan, we want to return `None` for the plan. Closes CLO-655. Release Notes: - N/A
This commit is contained in:
parent
24a304c140
commit
01fb4765a5
1 changed files with 2 additions and 4 deletions
|
|
@ -755,10 +755,8 @@ impl UserStore {
|
|||
};
|
||||
}
|
||||
|
||||
if let Some(organization) = &self.current_organization
|
||||
&& let Some(plan) = self.plan_for_organization(&organization.id)
|
||||
{
|
||||
return Some(plan);
|
||||
if let Some(organization) = &self.current_organization {
|
||||
return self.plan_for_organization(&organization.id);
|
||||
}
|
||||
|
||||
self.plan_info.as_ref().map(|info| info.plan())
|
||||
|
|
|
|||
Loading…
Reference in a new issue