1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-07 06:40:54 +00:00

parse bool from localStorage

This commit is contained in:
slowbackspace 2019-03-22 10:12:38 +01:00
parent 58008eb6be
commit 84b62397a8

View File

@ -286,7 +286,7 @@ const loadStorageData = (): ThunkAction => (dispatch: Dispatch): void => {
const hideBalance: ?boolean = storageUtils.get(TYPE, KEY_HIDE_BALANCE);
if (hideBalance) {
dispatch(WalletActions.setHideBalance(hideBalance));
dispatch(WalletActions.setHideBalance(JSON.parse(hideBalance)));
}
};