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:
Marshall Bowers 2026-04-14 10:55:03 -04:00 committed by GitHub
parent 24a304c140
commit 01fb4765a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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())