chore: fix dialyzer warning (#63)

This commit is contained in:
Robert Graff 2023-08-02 16:46:13 -07:00 committed by GitHub
parent 182482990e
commit c27d1c2962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ defmodule AshAdmin.Components.TopNav.TenantForm do
</button>
</.form>
<a :if={!@editing_tenant} href="#" phx-click="start_editing_tenant" phx-target={@myself}>
<%= "Tenant: #{@tenant}" || "No tenant" %>
<%= if @tenant, do: "Tenant: #{@tenant}", else: "No tenant" %>
</a>
<button :if={@tenant} phx-click={@clear_tenant}>
<svg