Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

client: Don't override organization plans with personal plan (#53842)

Marshall Bowers01fb4765a5dc
diff --git a/crates/client/src/user.rs b/crates/client/src/user.rs
index 270180cefd7..f7b7efb49cf 100644
--- a/crates/client/src/user.rs
+++ b/crates/client/src/user.rs
@@ -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())