summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-05-10 09:57:06 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-05-10 09:57:06 +0800
commita5fa5c0c7c2ddda9dbb8e8215ddc4f4f1373cc0c (patch)
tree9cb02ac906aa1543a466e1c186db0196e5ef0f6c
parent317d5d77b253caf466f9372b277a8af7b9c7bfcb (diff)
Handle undefined due date
-rw-r--r--contents/ui/ActivityView.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/contents/ui/ActivityView.qml b/contents/ui/ActivityView.qml
index d6e3798..6c58b68 100644
--- a/contents/ui/ActivityView.qml
+++ b/contents/ui/ActivityView.qml
@@ -86,6 +86,7 @@ RowLayout {
function dueLabelText() {
if (type != "assignment") { return "" }
if (submitted) { return i18n("Submitted") }
+ if (!dueAt) { return i18n("Due date not announced") }
return i18n("Due: ") + humanDue(dueAt)
}