fix add custom answer
continuous-integration/drone/push Build is passing Details

master 1.0
avalin 5 months ago
parent f3f8d78244
commit b745c4f2fd

@ -87,7 +87,10 @@ fun BetCreationScreenAnswerTab(
BetCreationScreenCustomAnswerTextField(
value = currentAnswer,
setValue = setCurrentAnswer,
onAdd = { addAnswer(currentAnswer) },
onAdd = {
addAnswer(currentAnswer)
setCurrentAnswer("")
},
enabled = selectedBetType.answers.size < BET_MAX_ANSWERS,
buttonEnabled = currentAnswer.isNotBlank() && (currentAnswer !in selectedBetType.answers),
modifier = Modifier.fillMaxWidth()

Loading…
Cancel
Save