Commit c1d2e5ae authored by Amaury Martiny's avatar Amaury Martiny
Browse files

Fix bug debug in react

parent ae0e6f9d
......@@ -53,7 +53,7 @@ class AccountsList extends Component {
history.push('/tokens', { address });
})
.catch(err =>
logger()('AccountsList')(`Error while selecting account, ${err.message}.`)
debug('AccountsList')(`Error while selecting account, ${err.message}.`)
);
};
......
......@@ -12,7 +12,7 @@ import store from 'store';
import Debug from '../utils/debug';
import LS_PREFIX from './utils/lsPrefix';
const debug = logger()('sendStore');
const debug = Debug('sendStore');
const electron = isElectron() ? window.require('electron') : null;
const LS_KEY = `${LS_PREFIX}::secureToken`;
......@@ -31,7 +31,7 @@ class ParityStore {
}
if (!electron) {
logger()(
debug(
'Not in Electron, ParityStore will only have limited capabilities.'
);
return;
......
......@@ -15,7 +15,7 @@ import Debug from '../utils/debug';
import parityStore from './parityStore';
import tokensStore from './tokensStore';
const debug = logger()('sendStore');
const debug = Debug('sendStore');
const DEFAULT_GAS = new BigNumber(21000); // Default gas amount to show
const GAS_MULT_FACTOR = 1.33; // Since estimateGas is not always accurate, we add a 33% factor for buffer.
......@@ -111,7 +111,7 @@ class SendStore {
this.txForErc20.options
);
logger()(
debug(
'Sending tx.',
this.tokenAddress === 'ETH' ? this.txForEth : this.txForErc20
);
......@@ -125,7 +125,7 @@ class SendStore {
.catch(reject);
}
this.setTxStatus(txStatus);
logger()('Tx status updated.', txStatus);
debug('Tx status updated.', txStatus);
});
});
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment