Fix comeback bonus
This commit is contained in:
parent
d38aeb2f44
commit
99977bc8e6
4 changed files with 44 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue