diff --git a/compliance-agent/src/api/handlers/offers.rs b/compliance-agent/src/api/handlers/offers.rs index fe2e6da..229bfd3 100644 --- a/compliance-agent/src/api/handlers/offers.rs +++ b/compliance-agent/src/api/handlers/offers.rs @@ -218,7 +218,7 @@ async fn still_open( tracing::error!("connection check unavailable: {e}"); StatusCode::SERVICE_UNAVAILABLE })?; - if !state.is_some_and(|s| s.peer_of(tenant) == Some(offer.supplier_tenant_id.as_str())) { + if state.is_none_or(|s| s.peer_of(tenant) != Some(offer.supplier_tenant_id.as_str())) { return Ok(false); } let Ok(release) = ObjectId::parse_str(&offer.release_id) else {