Skip to content

Commit

Permalink
fix user's avatar image after login
Browse files Browse the repository at this point in the history
  • Loading branch information
humorless committed Aug 28, 2024
1 parent 093746b commit 5b9a1a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/co/gaiwan/compass/html/navigation.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[co.gaiwan.compass.html.graphics :as graphics]
[co.gaiwan.compass.http.routing :refer [url-for]]
[co.gaiwan.compass.model.user :as user]
[co.gaiwan.compass.model.assets :as assets]
[lambdaisland.ornament :as o]))

(o/defrules notifier-dot
Expand Down Expand Up @@ -77,11 +78,10 @@
[:div.user
(when user
[:<>
[c/avatar (:public-profile/avatar-url user)]
[c/avatar (assets/asset-url (:public-profile/avatar-url user))]
"Signed in as " (:public-profile/name user) "." [:a {:href "/logout"} "Sign out"]])]
[:button {:cx-toggle "menu-open" :cx-target "body"}
[graphics/cross]
]]
[graphics/cross]]]
#_[:pre (pr-str user)]
[:ul
[:li.discord-button
Expand Down

0 comments on commit 5b9a1a7

Please sign in to comment.