Fix crash when deleting an account

This commit is contained in:
Shinokuni 2024-07-10 17:41:02 +02:00
parent 9de8361a33
commit ba7b2b7108
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,8 @@ class FeedScreenModel(
_addFeedDialogState.update { dialogState ->
dialogState.copy(
accounts = accounts,
selectedAccount = accounts.find { it.isCurrentAccount }!!
selectedAccount = accounts.find { it.isCurrentAccount }
?: accounts.first()
)
}
}