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,
questionPoints = questionData.actualUsagePoints(secondRoundDouble).toLong(),
onQuestionDone = { showAnswer = true },
onQuestionAnswered = { questionAnswered = QuestionResolution(true, it) }
onQuestionAnswered = {
questionAnswered = QuestionResolution(true, it)
}
)
} else {
QuestionDialogPlayer(
@ -79,7 +81,7 @@ fun QuestionDialogContent(
onResolve = {
if (showAnswer) {
onResolve(
QuestionResolution(true, null)
QuestionResolution(true, questionAnswered.player)
)
} else {
showAnswer = true