Skip to content

Commit

Permalink
fix: stabilize users order on game review
Browse files Browse the repository at this point in the history
  • Loading branch information
david-vct authored Apr 19, 2024
1 parent 640dd3d commit e4dcfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/game/GameReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const GameReview = (props: GameReviewProps) => {
const [isAnswerRight, setIsAnswerRight] = useState(false)

const question = props.game.questions[questionIndex]
const userIds = Object.keys(props.game.users)
const userIds = Object.keys(props.game.users).sort((a, b) => a.localeCompare(b))
const user = props.game.users[userIds[usersIndex]]

const goNext = () => {
Expand Down

0 comments on commit e4dcfe4

Please sign in to comment.