Skip to content

Commit d03bad4

Browse files
authored
Fix: show abstract deadline note even when a comment is set (#1552)
* Fix the missing abstract deadline when notes are provided * Fix minor period placement problem
1 parent 6f12ec2 commit d03bad4

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

src/components/showtable.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,14 @@ pub fn ShowTable() -> impl IntoView {
329329
.with_timezone(&current_timezone)
330330
.format("%b %e, %Y")
331331
.to_string();
332-
if item.comment.is_none() {
333-
item.comment = Some(format!(
334-
"abstract deadline on {}.",
335-
formatted_abs_ddl
336-
));
337-
}
332+
let abs_note =
333+
format!("abstract deadline on {}", formatted_abs_ddl);
334+
item.comment = Some(match &item.comment {
335+
Some(existing) if !existing.is_empty() => {
336+
format!("{} ({}).", existing, abs_note)
337+
}
338+
_ => format!("{}.", abs_note),
339+
});
338340
}
339341
}
340342

0 commit comments

Comments
 (0)