mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-07 06:40:54 +00:00
Merge pull request #469 from trezor/fix/flow-error-hideBalance
Fix/storageUtils.get returns string not boolean
This commit is contained in:
commit
c2686ff682
@ -284,7 +284,7 @@ const loadStorageData = (): ThunkAction => (dispatch: Dispatch): void => {
|
||||
dispatch(WalletActions.setLocalCurrency(JSON.parse(localCurrency)));
|
||||
}
|
||||
|
||||
const hideBalance: ?boolean = storageUtils.get(TYPE, KEY_HIDE_BALANCE);
|
||||
const hideBalance: ?string = storageUtils.get(TYPE, KEY_HIDE_BALANCE);
|
||||
if (hideBalance) {
|
||||
dispatch(WalletActions.setHideBalance(JSON.parse(hideBalance)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user