fix url check in public note

This commit is contained in:
Inhji 2023-07-18 07:35:32 +02:00
parent fe33113b88
commit 5cf2f477da

View file

@ -24,7 +24,7 @@
</section>
<% end %>
<%= if String.length(@note.url) > 0 do %>
<%= if String.length(@note.url || "") > 0 do %>
<section class="mt-8 max-w-2xl mx-auto text-center text-lg">
<.divider text=" " />
<.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a>