From b8f6271e3fabd27bd5da0668ee1a801684080302 Mon Sep 17 00:00:00 2001 From: Arne Brasseur Date: Fri, 6 Sep 2024 10:22:19 +0200 Subject: [PATCH] Basic nil punning until we see what is going on --- src/co/gaiwan/compass/html/sessions.clj | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/co/gaiwan/compass/html/sessions.clj b/src/co/gaiwan/compass/html/sessions.clj index 6557051..907c867 100644 --- a/src/co/gaiwan/compass/html/sessions.clj +++ b/src/co/gaiwan/compass/html/sessions.clj @@ -243,11 +243,12 @@ [:div.event-at [:p "Event scheduled at"] [:div.datetime - (str (time/truncate-to (time/local-time time) :minutes) - ", " - (subs (str/capitalize (str (time/day-of-week time))) 0 3) - " " - (time/format "dd.MM" time))]] + (when time + (str (time/truncate-to (time/local-time time) :minutes) + ", " + (subs (str/capitalize (str (time/day-of-week time))) 0 3) + " " + (time/format "dd.MM" time)))]] [:h3.subtitle subtitle] [:div.description [:div (m/component (m/md->hiccup description))]]