diff --git a/lib/decentralised_book_index_web/controllers/error_html/404.html.heex b/lib/decentralised_book_index_web/controllers/error_html/404.html.heex index cf78bfc..41113fe 100644 --- a/lib/decentralised_book_index_web/controllers/error_html/404.html.heex +++ b/lib/decentralised_book_index_web/controllers/error_html/404.html.heex @@ -18,7 +18,9 @@
- <.flash_group flash={@flash} /> + <%= if Map.has_key?(assigns, :flash) do %> + <.flash_group flash={@flash} /> + <% end %>
diff --git a/lib/decentralised_book_index_web/controllers/error_html/500.html.heex b/lib/decentralised_book_index_web/controllers/error_html/500.html.heex index cac21b2..42f8185 100644 --- a/lib/decentralised_book_index_web/controllers/error_html/500.html.heex +++ b/lib/decentralised_book_index_web/controllers/error_html/500.html.heex @@ -18,7 +18,9 @@
- <.flash_group flash={@flash} /> + <%= if Map.has_key?(assigns, :flash) do %> + <.flash_group flash={@flash} /> + <% end %>