mirror of
https://github.com/bitwarden/android.git
synced 2026-06-08 08:06:32 -05:00
BIT-589 Prevent crash on Landing when navigating with empty input (#59)
This commit is contained in:
committed by
Álison Fernandes
parent
3de916cc20
commit
35483408b2
@@ -49,6 +49,10 @@ class LandingViewModel @Inject constructor(
|
||||
}
|
||||
|
||||
private fun handleContinueButtonClicked() {
|
||||
// TODO: add actual validation here: BIT-193
|
||||
if (mutableStateFlow.value.emailInput.isBlank()) {
|
||||
return
|
||||
}
|
||||
sendEvent(LandingEvent.NavigateToLogin(mutableStateFlow.value.emailInput))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user