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

Merge pull request #469 from trezor/fix/flow-error-hideBalance

Fix/storageUtils.get returns string not boolean
This commit is contained in:
Szymon Lesisz 2019-03-26 10:45:28 +01:00 committed by GitHub
commit c2686ff682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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