assistant panel: Fix wrong state for Zed.dev provider being shown (#15800)

Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
This commit is contained in:
Thorsten Ball 2024-08-05 15:35:58 +02:00 committed by GitHub
parent 0d97b236e7
commit 49d0672cdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,7 +435,7 @@ impl Render for ConfigurationView {
const ZED_AI_URL: &str = "https://zed.dev/ai";
const ACCOUNT_SETTINGS_URL: &str = "https://zed.dev/account";
let is_connected = self.state.read(cx).is_signed_out();
let is_connected = !self.state.read(cx).is_signed_out();
let plan = self.state.read(cx).user_store.read(cx).current_plan();
let is_pro = plan == Some(proto::Plan::ZedPro);