mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-08 07:01:04 +00:00
parse bool from localStorage
This commit is contained in:
parent
58008eb6be
commit
84b62397a8
@ -286,7 +286,7 @@ const loadStorageData = (): ThunkAction => (dispatch: Dispatch): void => {
|
|||||||
|
|
||||||
const hideBalance: ?boolean = storageUtils.get(TYPE, KEY_HIDE_BALANCE);
|
const hideBalance: ?boolean = storageUtils.get(TYPE, KEY_HIDE_BALANCE);
|
||||||
if (hideBalance) {
|
if (hideBalance) {
|
||||||
dispatch(WalletActions.setHideBalance(hideBalance));
|
dispatch(WalletActions.setHideBalance(JSON.parse(hideBalance)));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user