From 45deaf476fd513cbaab2379a08a1d5de67d4d5bb Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Sun, 7 Jul 2024 03:18:24 -0400 Subject: Trim first character from emoji name in ChoreCard component --- src/views/Chores/ChoreCard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Chores/ChoreCard.jsx b/src/views/Chores/ChoreCard.jsx index f5c0dbd..5e54e6b 100644 --- a/src/views/Chores/ChoreCard.jsx +++ b/src/views/Chores/ChoreCard.jsx @@ -324,7 +324,7 @@ const ChoreCard = ({ chore, performers, onChoreUpdate, onChoreRemove, sx }) => { const split = Array.from(chore.name) // if the first character is emoji then remove it from the name if (/\p{Emoji}/u.test(split[0])) { - return split.slice(2).join('') + return split.slice(1).join('').trim() } return name } -- cgit