Skip to content

Commit 85de7d0

Browse files
authored
Merge pull request #74 from feedingaliencat/588-chores-starting-with-digit
ChoreCard: Fix rendering of chores names starting with a digit
2 parents 9f9724c + 4b1bd48 commit 85de7d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/views/Chores/ChoreCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const ChoreCard = ({
7878
const getName = name => {
7979
const split = Array.from(chore.name)
8080
// if the first character is emoji then remove it from the name
81-
if (/\p{Emoji}/u.test(split[0])) {
81+
if (isNaN(Number(split[0])) && /\p{Emoji}/u.test(split[0])) {
8282
return split.slice(1).join('').trim()
8383
}
8484
return name

0 commit comments

Comments
 (0)