From a51a803bffc440a4498da0f91035db8fb16a00e2 Mon Sep 17 00:00:00 2001 From: wk3368 Date: Fri, 17 Jun 2022 15:40:34 +0800 Subject: [PATCH] delete console.log --- .../transaction-list-item-details.component.js | 2 -- ui/app/components/app/wallet-overview/token-overview.js | 1 - ui/app/helpers/utils/util.js | 1 - ui/app/hooks/useTokenTracker.js | 1 - ui/app/pages/add-nft/add-nft.component.js | 1 - ui/app/pages/create-account/import-account/private-key.js | 1 - ui/app/pages/multi-sign-txn/txn-file.js | 1 - ui/lib/token-tracker/index.js | 3 --- 8 files changed, 11 deletions(-) diff --git a/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js b/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js index 6648b89f..d706cfec 100644 --- a/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js +++ b/ui/app/components/app/transaction-list-item-details/transaction-list-item-details.component.js @@ -113,13 +113,11 @@ export default class TransactionListItemDetails extends PureComponent { }; handleCopyTxHex = () => { - console.log('handleCopyTxHex') const { transactionGroup } = this.props; const { primaryTransaction: transaction } = transactionGroup; const { multiSign: { signedTransactionHex: hash }, } = transaction; - console.log(hash) copyToClipboard(hash); }; diff --git a/ui/app/components/app/wallet-overview/token-overview.js b/ui/app/components/app/wallet-overview/token-overview.js index 1d410b99..9417baea 100644 --- a/ui/app/components/app/wallet-overview/token-overview.js +++ b/ui/app/components/app/wallet-overview/token-overview.js @@ -115,7 +115,6 @@ const TokenOverview = ({ className, token }) => { { - console.log('click 2') sendTokenEvent(); dispatch(updateSendToken(token)); // quick fix: OneKey postmessage will get lost if the popup window lost focus diff --git a/ui/app/helpers/utils/util.js b/ui/app/helpers/utils/util.js index 3245ea56..00112371 100644 --- a/ui/app/helpers/utils/util.js +++ b/ui/app/helpers/utils/util.js @@ -469,7 +469,6 @@ export function checkExistingCodes(code, list = []) { * @returns {boolean} Whether or not the NFTMeta is in the list */ export function checkExistingNFT(nftMeta, list = []) { - console.log('checkExistingNFT', nftMeta, list) if (!nftMeta) { return false; } diff --git a/ui/app/hooks/useTokenTracker.js b/ui/app/hooks/useTokenTracker.js index 1ad72023..29426314 100644 --- a/ui/app/hooks/useTokenTracker.js +++ b/ui/app/hooks/useTokenTracker.js @@ -42,7 +42,6 @@ export function useTokenTracker( if (!hideZeroBalanceTokens) { const unAcceptTokens = tokens.filter((token) => currentAssets && !currentAssets[token.code]); unAcceptTokens.map(({ code, decimals, symbol }) => { - console.log('unAcceptTokens', code, currentAssets[code]) const numberOfDecimals = decimals <= 9 ? 4 : 9; const token = { code, diff --git a/ui/app/pages/add-nft/add-nft.component.js b/ui/app/pages/add-nft/add-nft.component.js index 68007a8b..76cb9e31 100644 --- a/ui/app/pages/add-nft/add-nft.component.js +++ b/ui/app/pages/add-nft/add-nft.component.js @@ -142,7 +142,6 @@ class AddNFT extends Component { this.handleCustomNameChange(metaInfo.name || ''); this.handleCustomDescriptionChange(metaInfo.description || ''); } catch (error) { - console.log('dsdf', typeof error, JSON.stringify(error), error.Error); console.log(error); // this.setState({ // customMetaError: error, diff --git a/ui/app/pages/create-account/import-account/private-key.js b/ui/app/pages/create-account/import-account/private-key.js index 2cd4d6e5..c360424b 100644 --- a/ui/app/pages/create-account/import-account/private-key.js +++ b/ui/app/pages/create-account/import-account/private-key.js @@ -41,7 +41,6 @@ class PrivateKeyImportView extends Component { importNewAccount('Private Key', [privateKey]) .then(({ selectedAddress }) => { - console.log('selectedAddress', selectedAddress); if (selectedAddress) { this.context.metricsEvent({ eventOpts: { diff --git a/ui/app/pages/multi-sign-txn/txn-file.js b/ui/app/pages/multi-sign-txn/txn-file.js index e93c8a48..45e93dd9 100644 --- a/ui/app/pages/multi-sign-txn/txn-file.js +++ b/ui/app/pages/multi-sign-txn/txn-file.js @@ -90,7 +90,6 @@ class TxnFileImportSubview extends Component { const txnUint8Array = new Uint8Array(fileContents) const txnHex = hexlify(txnUint8Array) - console.log('signTxnFile', { fileContents, txnHex }) // hide multiSign page setTimeout(() => { diff --git a/ui/lib/token-tracker/index.js b/ui/lib/token-tracker/index.js index 213e65b4..7293e14d 100644 --- a/ui/lib/token-tracker/index.js +++ b/ui/lib/token-tracker/index.js @@ -10,7 +10,6 @@ class TokenTracker extends SafeEventEmitter { constructor(opts = {}) { super() - console.log('TokenTracker constructor', opts) this.includeFailedTokens = opts.includeFailedTokens || false this.userAddress = opts.userAddress || '0x0' this.provider = opts.provider @@ -54,13 +53,11 @@ class TokenTracker extends SafeEventEmitter { async updateBalances() { try { - console.log('stc-token-tracker updateBalances', this.tokens) // await Promise.all(this.tokens.map((token) => { // return token.updateBalance() // })) const newBalances = this.serialize() - console.log('newBalances', newBalances) this._update(newBalances) } catch (reason) { this.emit('error', reason)