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(
extension.i18n.getAcceptLanguages,
{ errorFirst: false }
)().catch(err => console.log('err123', err))
)()
const firstPreferredLangCode = userPreferredLocaleCodes.find(code => existingLocaleCodes.includes(code))
// const firstPreferredLangCode = userPreferredLocaleCodes[0]
return firstPreferredLangCode || 'en'
}

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

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

Loading…
Cancel
Save