Update value of team name immediately.

This commit is contained in:
2023-05-11 23:05:47 +02:00
parent 507944794f
commit c40d473fa5

View File

@@ -268,12 +268,14 @@ class CounterViewModel @Inject constructor(
}
override fun updateNameA(value: String) {
teamNameA = value
viewModelScope.launch {
gameRepository.updateActiveTeamName(nameA = value)
}
}
override fun updateNameB(value: String) {
teamNameB = value
viewModelScope.launch {
gameRepository.updateActiveTeamName(nameB = value)
}