Skip to content

Commit

Permalink
Basic nil punning until we see what is going on
Browse files Browse the repository at this point in the history
  • Loading branch information
plexus committed Sep 6, 2024
1 parent 6154054 commit b8f6271
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/co/gaiwan/compass/html/sessions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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))]]
Expand Down

0 comments on commit b8f6271

Please sign in to comment.