fix(keycard): app crashes when trying to generate new keys with an already used keycard

A crash was happening cause the wallet account service was not available before the user logged in.

Fixes: #13286
This commit is contained in:
Sale Djenic 2024-01-29 10:00:40 +01:00 committed by saledjenic
parent d8102fa2b3
commit c8d17f48e5
1 changed files with 2 additions and 0 deletions

View File

@ -851,4 +851,6 @@ proc tryToStoreDataToKeychain*(self: Controller, password: string) =
self.keychainService.storeData(singletonInstance.userProfile.getKeyUid(), password) self.keychainService.storeData(singletonInstance.userProfile.getKeyUid(), password)
proc getCurrencyFormat*(self: Controller, symbol: string): CurrencyFormatDto = proc getCurrencyFormat*(self: Controller, symbol: string): CurrencyFormatDto =
if not serviceApplicable(self.walletAccountService):
return
return self.walletAccountService.getCurrencyFormat(symbol) return self.walletAccountService.getCurrencyFormat(symbol)