Skip to content

Commit

Permalink
move language label to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Oct 7, 2023
1 parent 7ff5d93 commit 6fb16c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,10 @@ function App() {
setStats(addStatsForCompletedGame(stats, guesses.length))
}
const name = window.webxdc.selfName
const info = `[${language_label}] ${name} guessed the word of the day! 🎉 ${
const info = `${name} guessed the word of the day! 🎉 ${
guesses.length + 1
}/${MAX_CHALLENGES}`
}/${MAX_CHALLENGES} [${language_label}]`

window.webxdc.sendUpdate({ payload: null, info: info }, info)
return setIsGameWon(true)
}
Expand All @@ -273,7 +274,7 @@ function App() {
setStats(addStatsForCompletedGame(stats, guesses.length + 1))
}
const name = window.webxdc.selfName
const info = `[${language_label}] ${name} failed to guess the word of the day 😅 X/${MAX_CHALLENGES}`
const info = `${name} failed to guess the word of the day 😅 X/${MAX_CHALLENGES} [${language_label}]`
window.webxdc.sendUpdate({ payload: null, info: info }, info)
setIsGameLost(true)
showErrorAlert(CORRECT_WORD_MESSAGE(solution), {
Expand Down

0 comments on commit 6fb16c9

Please sign in to comment.