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> </section>
<% end %> <% 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"> <section class="mt-8 max-w-2xl mx-auto text-center text-lg">
<.divider text=" " /> <.divider text=" " />
<.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a> <.icon name="hero-link" /> <a href={@note.url}><%= @note.url %></a>