aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-07 03:18:24 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-07 03:18:24 -0400
commit45deaf476fd513cbaab2379a08a1d5de67d4d5bb (patch)
tree8bd977644f9aef39cad9a505cc4018728bc7c06f
parent09a4bbd4712155b011f26bdb09ca07ddf8ed768e (diff)
downloaddonetick-frontend-45deaf476fd513cbaab2379a08a1d5de67d4d5bb.tar.gz
donetick-frontend-45deaf476fd513cbaab2379a08a1d5de67d4d5bb.tar.bz2
donetick-frontend-45deaf476fd513cbaab2379a08a1d5de67d4d5bb.zip
Trim first character from emoji name in ChoreCard component
Diffstat (limited to '')
-rw-r--r--src/views/Chores/ChoreCard.jsx2
1 files changed, 1 insertions, 1 deletions
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
}