diff --git a/src/model/tripdetails.rs b/src/model/tripdetails.rs index 6d035be..71a427c 100644 --- a/src/model/tripdetails.rs +++ b/src/model/tripdetails.rs @@ -141,7 +141,7 @@ ORDER BY day;", .fetch_one(db) .await .unwrap(); - if is_cox.amount.unwrap() > 0 { + if is_cox.amount > 0 { return CoxAtTrip::Yes(Action::Helping); }