Skip to content

Commit b6da141

Browse files
safer comparision
1 parent 79d33da commit b6da141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/desktop/src-tauri/src/posthog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pub fn set_server_url(url: &str) {
7171
*API_SERVER_IS_CAP_CLOUD
7272
.get_or_init(Default::default)
7373
.write()
74-
.unwrap_or_else(PoisonError::into_inner) = Some(url.contains("https://cap.so"));
74+
.unwrap_or_else(PoisonError::into_inner) = Some(url == "https://cap.so");
7575
}
7676

7777
static API_SERVER_IS_CAP_CLOUD: OnceLock<RwLock<Option<bool>>> = OnceLock::new();

0 commit comments

Comments
 (0)