mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-07 06:40:54 +00:00
fix storageUtils.get returns string not boolean
This commit is contained in:
parent
e3ad843914
commit
b8f45bd9c4
@ -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