Fix error where answering player was not shown on Question Card.

This commit is contained in:
Oliver Rümpelein 2021-09-18 12:47:58 +02:00
parent 613b56b892
commit 30cdfdcd17

View file

@ -56,7 +56,9 @@ fun QuestionDialogContent(
onPointsChange = onPointsChange, onPointsChange = onPointsChange,
questionPoints = questionData.actualUsagePoints(secondRoundDouble).toLong(), questionPoints = questionData.actualUsagePoints(secondRoundDouble).toLong(),
onQuestionDone = { showAnswer = true }, onQuestionDone = { showAnswer = true },
onQuestionAnswered = { questionAnswered = QuestionResolution(true, it) } onQuestionAnswered = {
questionAnswered = QuestionResolution(true, it)
}
) )
} else { } else {
QuestionDialogPlayer( QuestionDialogPlayer(
@ -79,7 +81,7 @@ fun QuestionDialogContent(
onResolve = { onResolve = {
if (showAnswer) { if (showAnswer) {
onResolve( onResolve(
QuestionResolution(true, null) QuestionResolution(true, questionAnswered.player)
) )
} else { } else {
showAnswer = true showAnswer = true