Skip to content

Commit

Permalink
feat(me): add comments for reviewing
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Oct 4, 2023
1 parent 62d8359 commit ed9c4da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export class MyOrgUsersComponent {
) {
this.searchFacade.resetSearch()
this.authService.user$.subscribe((user) => {
this.orgName = 'Géo2France'
// this.orgName = 'Géo2France'
this.orgName = user?.organisation
})
this.orgService.organisations$.subscribe((orgs) => {
const org = orgs.filter((org) => org.name === this.orgName)[0]
Expand All @@ -41,7 +42,8 @@ export class MyOrgUsersComponent {
})
this.authService.allUsers$.subscribe((users) => {
this.userList = users.filter(
(user) => user.organisation === 'Barbie Inc.'
// (user) => user.organisation === 'Barbie Inc.'
(user) => user.organisation === this.orgName
)
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export class MyOrgRecordsComponent {
) {
this.searchFacade.resetSearch()
this.authService.user$.subscribe((user) => {
this.orgName = 'Géo2France'
// this.orgName = 'Géo2France'
this.orgName = user?.organisation
this.searchByOrganisation({ name: this.orgName })
})
this.orgService.organisations$.subscribe((orgs) => {
Expand All @@ -41,7 +42,8 @@ export class MyOrgRecordsComponent {

this.authService.allUsers$.subscribe((users) => {
this.userCount = users.filter(
(user) => user.organisation === 'Barbie Inc.'
// (user) => user.organisation === 'Barbie Inc.'
(user) => user.organisation === this.orgName
).length
})
}
Expand Down

0 comments on commit ed9c4da

Please sign in to comment.