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,
|
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
|
||||||
|
|
Loading…
Reference in a new issue