fix: remove trailing comma in share text when there is no streak

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
George Powell
2026-02-26 15:13:13 -05:00
parent a188be167b
commit 1ae2b2ac6c

View File

@@ -78,7 +78,7 @@ export function generateShareText(params: {
const lines = [ const lines = [
`${bookEmoji} Bibdle | ${formattedDate} ${bookEmoji}`, `${bookEmoji} Bibdle | ${formattedDate} ${bookEmoji}`,
`${guesses.length} ${guessWord},${streakPart}`, `${guesses.length} ${guessWord}${streakPart ? `,${streakPart}` : ""}`,
`${emojis}${chapterStar}` `${emojis}${chapterStar}`
]; ];