diff --git a/src/components/UsersList.svelte b/src/components/UsersList.svelte index 546b16f..2a9629f 100644 --- a/src/components/UsersList.svelte +++ b/src/components/UsersList.svelte @@ -1,25 +1,48 @@
-

Users

- {#each users as user} -
{user.name}
-
- {#if user.estimate !== null && showEstimates} -

{user.estimate}

- {/if} -
- {/each} +
+ {#each users as user} +
+
{user.name}
+
+ {#if user.estimate !== null && (showEstimates || user.userId === userId)} +

{user.estimate}

+ {/if} +
+
+ {/each} +