Skip to content

Commit

Permalink
Update Avatar component to handle names with multiple spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
katamartin committed Jul 1, 2024
1 parent ccdb1c3 commit ed495fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Avatar = ({
if (name) {
srcProp = `https://images.carbonplan.org/team/${name
.toLowerCase()
.replace(' ', '-')}.png`
.replaceAll(' ', '-')}.png`
altProp = alt || name
} else if (github) {
srcProp = `https://github.com/${github}.png`
Expand Down

0 comments on commit ed495fb

Please sign in to comment.