diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-05-10 09:57:06 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-05-10 09:57:06 +0800 |
commit | a5fa5c0c7c2ddda9dbb8e8215ddc4f4f1373cc0c (patch) | |
tree | 9cb02ac906aa1543a466e1c186db0196e5ef0f6c /contents/ui/ActivityView.qml | |
parent | 317d5d77b253caf466f9372b277a8af7b9c7bfcb (diff) |
Handle undefined due date
Diffstat (limited to 'contents/ui/ActivityView.qml')
-rw-r--r-- | contents/ui/ActivityView.qml | 1 |
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) } |