Skip to content

Commit

Permalink
fix: set profile icon to camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas committed Aug 30, 2023
1 parent 93f2aef commit 8a7ac84
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libs/common/domain/src/lib/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export interface UserModel {
surname: string
email: string
organisation: string
profile_icon?: string
profileIcon?: string
}
2 changes: 1 addition & 1 deletion libs/common/fixtures/src/lib/user.fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const USER_FIXTURE = (): UserModel => ({
surname: 'De Maison',
email: '[email protected]',
organisation: 'Région Hauts-de-France',
profile_icon:
profileIcon:
'https://www.gravatar.com/avatar/dbdffd183622800bcf8587328daf43a6?d=mp',
})

Expand Down
2 changes: 1 addition & 1 deletion libs/feature/auth/src/lib/auth.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe('AuthService', () => {
name: 'Florent',
surname: 'Gravin',
email: '[email protected]',
profile_icon: 'http://icon_service.com/girafe',
profileIcon: 'http://icon_service.com/girafe',
organisation: null,
})
})
Expand Down
2 changes: 1 addition & 1 deletion libs/feature/auth/src/lib/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ export class AuthService {
...user
} = apiUser
const icon = this.avatarService.getProfileIcon(apiUser.hash)
return { ...user, profile_icon: icon } as UserModel
return { ...user, profileIcon: icon } as UserModel
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[matTooltip]="userFullName"
>
<gn-ui-avatar
[avatarUrl]="user.profile_icon"
[avatarUrl]="user.profileIcon"
[avatarPlaceholder]="avatarPlaceholder"
></gn-ui-avatar>
</div>
Expand Down

0 comments on commit 8a7ac84

Please sign in to comment.