chore: fix getting vault method (#2547)

* chore: fix getting vault method

* remove only attribute

* fix checking for vaults

* fix expected missing vaults
This commit is contained in:
Karol Sójko
2023-09-28 14:18:48 +02:00
committed by GitHub
parent 397d33285c
commit 4b1140d8f0
13 changed files with 60 additions and 60 deletions

View File

@@ -222,9 +222,10 @@ export class VaultDisplayService
}
if (this.isInExclusiveDisplayMode()) {
this.exclusivelyShownVault = this.application.vaults.getVault({
const vaultOrError = this.application.vaults.getVault({
keySystemIdentifier: this.options.getExclusivelyShownVault(),
})
this.exclusivelyShownVault = vaultOrError.isFailed() ? undefined : vaultOrError.getValue()
} else {
this.exclusivelyShownVault = undefined
}