cleaner cal
Some checks failed
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
philipp 2024-06-06 17:16:47 +02:00
parent d00570ff2f
commit 34b098fa2a

View File

@ -371,7 +371,7 @@ WHERE trip_details.id=?
name.push_str(&format!("{} ", triptype.name)) name.push_str(&format!("{} ", triptype.name))
} }
if let Some(notes) = tripdetails.notes { if let Some(notes) = tripdetails.notes {
if !notes.is_empty() { if !notes.is_empty() && event.is_cancelled() {
name.push_str(&format!("({notes}) ")) name.push_str(&format!("({notes}) "))
} }
} }