diff --git a/src/app/users/users.component.html b/src/app/users/users.component.html index 1e52986..791de59 100644 --- a/src/app/users/users.component.html +++ b/src/app/users/users.component.html @@ -1,5 +1,6 @@
- @for (user of usersWithFollowStatus$ | async; track $index) { + @for (user of usersWithFollowStatus$ | async; track $index) { @if + (user.uid!==uid) {
@@ -35,5 +36,5 @@

{{ user.name }}

}
- } + } }
diff --git a/src/app/users/users.component.ts b/src/app/users/users.component.ts index 91db7ab..bc6d974 100644 --- a/src/app/users/users.component.ts +++ b/src/app/users/users.component.ts @@ -16,7 +16,7 @@ export class UsersComponent { private readonly firestore: FirestoreService = inject(FirestoreService); private readonly auth: Auth = inject(Auth); - + uid: string | undefined = ""; users$: Observable = of([]); followingUids$: Observable = of([]); usersWithFollowStatus$: Observable = of([]); @@ -25,6 +25,7 @@ export class UsersComponent { ngOnInit() { this.getUsersList(); this.checkFollowStatus(); + this.uid = this.auth.currentUser?.uid } checkFollowStatus() {