diff --git a/common/sagas/transaction/network/gas.ts b/common/sagas/transaction/network/gas.ts index 9920ce5a..e11a92e6 100644 --- a/common/sagas/transaction/network/gas.ts +++ b/common/sagas/transaction/network/gas.ts @@ -72,7 +72,6 @@ export function* estimateGas(): SagaIterator { yield put(estimateGasSucceeded()); } catch (e) { yield put(estimateGasFailed()); - console.error(e); // fallback for estimating locally const tx = yield call(makeTransaction, payload); const gasLimit = yield apply(tx, tx.getBaseFee); diff --git a/common/sagas/wallet/wallet.ts b/common/sagas/wallet/wallet.ts index 3597eb09..3a8764ae 100644 --- a/common/sagas/wallet/wallet.ts +++ b/common/sagas/wallet/wallet.ts @@ -73,7 +73,6 @@ export function* updateTokenBalances(): SagaIterator { } yield put(setTokenBalancesPending()); const tokenBalances: TokenBalanceLookup = yield call(getTokenBalances, wallet, tokens); - console.log(tokenBalances); yield put(setTokenBalancesFulfilled(tokenBalances)); } catch (error) { console.error('Failed to get token balances', error); diff --git a/common/utils/localStorage.ts b/common/utils/localStorage.ts index 2eaf0e01..f617ad26 100644 --- a/common/utils/localStorage.ts +++ b/common/utils/localStorage.ts @@ -9,9 +9,9 @@ export function loadState(): T | undefined { if (serializedState === null) { return undefined; } - return JSON.parse(serializedState || ''); + return JSON.parse(serializedState || '{}'); } catch (err) { - console.warn(' Warning: corrupted local storage'); + console.warn(' Warning: corrupted local storage', err); } } diff --git a/package.json b/package.json index fb8d8f16..eda82254 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,8 @@ "prebuild": "check-node-version --package", "build:demo": "BUILD_GH_PAGES=true webpack --config webpack_config/webpack.prod.js", "prebuild:demo": "check-node-version --package", - "test": "jest --config=jest_config/jest.config.json --coverage", + "test:coverage": "jest --config=jest_config/jest.config.json --coverage", + "test": "jest --config=jest_config/jest.config.json", "test:unit": "jest --config=jest_config/jest.config.json --coverage", "test:int": "jest --config=jest_config/jest.int.config.json --coverage", "updateSnapshot": "jest --config=jest_config/jest.config.json --updateSnapshot",