diff --git a/radicle-httpd/src/api/v1/delegates.rs b/radicle-httpd/src/api/v1/delegates.rs index c28385b0b..89364523e 100644 --- a/radicle-httpd/src/api/v1/delegates.rs +++ b/radicle-httpd/src/api/v1/delegates.rs @@ -40,7 +40,7 @@ async fn delegates_projects_handler( let Ok((_, head)) = repo.head() else { return None }; let Ok(Doc { payload, delegates, .. }) = repo.project_of(ctx.profile.id()) else { return None }; - if !delegates.iter().any(|d| d.id == delegate) { + if !delegates.iter().any(|d| *d == delegate) { return None; }