This commit is contained in:
2026-06-13 19:00:00 -04:00
parent 306511074a
commit 264b266212
+1 -4
View File
@@ -30,10 +30,7 @@ pub mod contact {
impl AddContactRequest {
pub fn is_valid(&self) -> bool {
self.phone_number.is_empty()
|| self.firstname.is_none()
|| self.lastname.is_none()
|| self.user_id.is_nil()
!self.phone_number.is_empty() || !self.user_id.is_nil()
}
}
}