fix credo warning for is_owner?

This commit is contained in:
2024-02-23 22:18:25 -05:00
parent 2a87037f06
commit 362c406471
9 changed files with 17 additions and 17 deletions

View File

@ -33,7 +33,7 @@
>
<:actions :let={note}>
<.link
:if={Notes.is_owner?(note, @current_user)}
:if={Notes.owner?(note, @current_user)}
patch={~p"/notes/#{note}/edit"}
aria-label={dgettext("actions", "edit %{note_slug}", note_slug: note.slug)}
>

View File

@ -17,7 +17,7 @@
<div class="self-end flex space-x-4">
<.link
:if={Notes.is_owner?(@note, @current_user)}
:if={Notes.owner?(@note, @current_user)}
class="btn btn-primary"
patch={~p"/note/#{@note}/edit"}
>