1
0
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:
slowbackspace 2019-03-26 10:13:30 +01:00
parent e3ad843914
commit b8f45bd9c4

View File

@ -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)));
}