diff --git a/wallet/src/de/schildbach/wallet/ui/username/voting/RequestUserNameViewModel.kt b/wallet/src/de/schildbach/wallet/ui/username/voting/RequestUserNameViewModel.kt index 1a5dc4976..7d908b12a 100644 --- a/wallet/src/de/schildbach/wallet/ui/username/voting/RequestUserNameViewModel.kt +++ b/wallet/src/de/schildbach/wallet/ui/username/voting/RequestUserNameViewModel.kt @@ -253,7 +253,7 @@ class RequestUserNameViewModel @Inject constructor( } fun checkUsername(requestedUserName: String?) { - viewModelScope.launch(Dispatchers.IO) { + viewModelScope.launch { requestedUserName?.let { username -> val usernameSearchResult = platformRepo.getUsername(username) val usernameExists = when (usernameSearchResult.status) {