Fix comeback bonus

This commit is contained in:
Joey Yakimowich-Payne 2026-01-19 13:10:07 -07:00
commit 99977bc8e6
No known key found for this signature in database
GPG key ID: DDF6AF5B21B407D4
4 changed files with 44 additions and 3 deletions

View file

@ -915,6 +915,7 @@ export const useGame = () => {
playerRank,
isFirstCorrect,
config: gameConfigRef.current,
currentQuestionIndex: currentQuestionIndexRef.current,
});
const newScore = Math.max(0, currentPlayer.score + breakdown.total);
@ -1055,6 +1056,7 @@ export const useGame = () => {
playerRank,
isFirstCorrect: false,
config: gameConfigRef.current,
currentQuestionIndex: currentQuestionIndexRef.current,
});
const newScore = Math.max(0, p.score + breakdown.total);
@ -1436,6 +1438,7 @@ export const useGame = () => {
playerRank,
isFirstCorrect,
config: gameConfigRef.current,
currentQuestionIndex: currentQuestionIndexRef.current,
});
setLastPointsEarned(breakdown.total);