fix: don't show report button for own members

This commit is contained in:
Sam 2023-04-26 09:19:58 +02:00
parent 80a0257832
commit e5ec3dcbeb
Signed by: sam
GPG key ID: B4EF20DDE721CAA1

View file

@ -138,7 +138,7 @@
<Button color="secondary" outline on:click={copyURL}>
<Icon name="clipboard" /> Copy link
</Button>
{#if $userStore && $userStore.id !== data.id}
{#if $userStore && $userStore.id !== data.user.id}
<ReportButton subject="member" reportUrl="/members/{data.id}/reports" />
{/if}
</InputGroup>