BIT-2160: Edit cipher crash (#1176)

This commit is contained in:
Ramsey Smith
2024-06-20 17:08:07 +01:00
committed by Álison Fernandes
parent 992bafc16c
commit 3a7ef240b0
2 changed files with 36 additions and 7 deletions
@@ -2421,8 +2421,14 @@ class VaultAddEditViewModelTest : BaseViewModelTest() {
set("vault_edit_id", (vaultAddEditType as? VaultAddEditType.EditItem)?.vaultItemId)
set(
"vault_add_item_type",
(vaultAddEditType as? VaultAddEditType.AddItem)
?.vaultItemCipherType,
when ((vaultAddEditType as? VaultAddEditType.AddItem)
?.vaultItemCipherType) {
VaultItemCipherType.LOGIN -> "login"
VaultItemCipherType.CARD -> "card"
VaultItemCipherType.IDENTITY -> "identity"
VaultItemCipherType.SECURE_NOTE -> "secure_note"
null -> null
},
)
}