1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-02-18 19:12:02 +00:00

load first config from local storage if there is one

This commit is contained in:
Vladimir Volek 2019-04-16 19:05:06 +02:00
parent 184d8a2b23
commit 7050cf006d

View File

@ -248,6 +248,14 @@ const loadStorageData = (): ThunkAction => (dispatch: Dispatch): void => {
});
}
const hiddenCoins = getHiddenCoins();
if (hiddenCoins) {
dispatch({
type: WALLET.SET_HIDDEN_COINS,
hiddenCoins,
});
}
const userTokens: ?string = storageUtils.get(TYPE, KEY_TOKENS);
if (userTokens) {
dispatch({