Fix error where answering player was not shown on Question Card.
This commit is contained in:
parent
613b56b892
commit
30cdfdcd17
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue