From a5fa5c0c7c2ddda9dbb8e8215ddc4f4f1373cc0c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Tue, 10 May 2022 09:57:06 +0800 Subject: Handle undefined due date --- contents/ui/ActivityView.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'contents') 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) } -- cgit v1.2.3