Remove comments and console.logs

feature/default_network_editable
Dan 7 years ago
parent d2bd5687e8
commit be2254b880
  1. 3
      app/scripts/lib/get-first-preferred-lang-code.js
  2. 2
      ui/app/components/pending-tx/confirm-send-token.js
  3. 2
      ui/app/components/send/currency-display.js

@ -9,9 +9,8 @@ async function getFirstPreferredLangCode () {
const userPreferredLocaleCodes = await promisify( const userPreferredLocaleCodes = await promisify(
extension.i18n.getAcceptLanguages, extension.i18n.getAcceptLanguages,
{ errorFirst: false } { errorFirst: false }
)().catch(err => console.log('err123', err)) )()
const firstPreferredLangCode = userPreferredLocaleCodes.find(code => existingLocaleCodes.includes(code)) const firstPreferredLangCode = userPreferredLocaleCodes.find(code => existingLocaleCodes.includes(code))
// const firstPreferredLangCode = userPreferredLocaleCodes[0]
return firstPreferredLangCode || 'en' return firstPreferredLangCode || 'en'
} }

@ -21,7 +21,7 @@ const {
} = require('../../token-util') } = require('../../token-util')
const { MIN_GAS_PRICE_HEX } = require('../send/send-constants') const { MIN_GAS_PRICE_HEX } = require('../send/send-constants')
//
const { const {
getTokenExchangeRate, getTokenExchangeRate,
getSelectedAddress, getSelectedAddress,

@ -10,7 +10,7 @@ inherits(CurrencyDisplay, Component)
function CurrencyDisplay () { function CurrencyDisplay () {
Component.call(this) Component.call(this)
} }
//
function toHexWei (value) { function toHexWei (value) {
return conversionUtil(value, { return conversionUtil(value, {
fromNumericBase: 'dec', fromNumericBase: 'dec',

Loading…
Cancel
Save