diff --git a/src/coex/order_team.rs b/src/coex/order_team.rs index 8760f0e..60bbb86 100644 --- a/src/coex/order_team.rs +++ b/src/coex/order_team.rs @@ -1824,8 +1824,8 @@ pub async fn query_sell_order( match v { Ok(T) => { - if T.get("status").unwrap().as_str().unwrap() == "FILLED" - || T.get("status").unwrap().as_str().unwrap() == "PARTIALLY_FILLED" + if T.get("status").is_some_and(|a| a.as_str().unwrap() == "FILLED") + || T.get("status").is_some_and(|a| a.as_str().unwrap() == "PARTIALLY_FILLED") { let quote_asset_precision_option = exchange_info_vec .iter()