Skip to content

Commit

Permalink
fix: only use slack photos when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Sep 1, 2024
1 parent ecf9d31 commit 264c4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function getMemberPhoto(member: Pick<Member, 'slack_photo' | 'slack_photo
schoolPhoto = schoolPhoto?.replace('w_300,h_300', 'w_40,h_40') ?? null
slackPhoto = member.slack_photo_small ?? slackPhoto
}
if (slackPhoto) {
if (member.use_slack_photo) {
return slackPhoto ?? schoolPhoto
}
return schoolPhoto
Expand Down

0 comments on commit 264c4bc

Please sign in to comment.