Merge pull request #465 from trezor/fix/hideBalance-bool

Fix/parse hideBalance from localStorage as a bool
pull/469/head
Vladimir Volek 5 years ago committed by GitHub
commit 5f037c769c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save