From ed495fb3bec1bee7426d2757e19b82f1ab1e2771 Mon Sep 17 00:00:00 2001 From: katamartin Date: Mon, 1 Jul 2024 16:56:56 -0400 Subject: [PATCH] Update Avatar component to handle names with multiple spaces --- src/avatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avatar.js b/src/avatar.js index 6e9f612..223c566 100644 --- a/src/avatar.js +++ b/src/avatar.js @@ -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`