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:
parent
d8102fa2b3
commit
c8d17f48e5
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue