remove toast message

This commit is contained in:
2026-07-06 07:20:43 +07:00
parent 80c6426d27
commit 0ad872d186
2 changed files with 11 additions and 10 deletions

View File

@@ -242,13 +242,17 @@ fun ImportScreen() {
Button(
onClick = {
scope.launch {
if (pubkey == null) {
authViewModel.verifyIdentity(secret).let { pubkey = it }
} else {
// Import the identity
authViewModel.importIdentity(secret)
// Navigate to the home screen
navigator.navigate(Screen.Home)
try {
if (pubkey == null) {
authViewModel.verifyIdentity(secret).let { pubkey = it }
} else {
// Import the identity
authViewModel.importIdentity(secret)
// Navigate to the home screen
navigator.navigate(Screen.Home)
}
} catch (e: Exception) {
snackbarHostState.showSnackbar("Error: ${e.message}")
}
}