Skip to content

Commit

Permalink
style(cleanup console)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed Jun 22, 2018
1 parent a81d466 commit 8b046a4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { put, call, select, take } from 'redux-saga/effects'
import { put, call, select } from 'redux-saga/effects'
import { any, merge, path, prop, equals, head } from 'ramda'
import { delay } from 'redux-saga'
import * as A from './actions'
import * as actions from '../../actions'
import * as actionTypes from '../../actionTypes'
import * as selectors from '../../selectors.js'
import * as C from 'services/AlertService'
import * as service from 'services/CoinifyService'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ class ISignThisContainer extends Component {
}

onQuoteExpiration () {
console.log('Quote expired')
this.setState({ quoteExpired: true })
}

Expand Down Expand Up @@ -232,7 +231,6 @@ class ISignThisContainer extends Component {
</Fragment>
)
} else {
console.log(q.expiresAt, q.expiresAt.getTime())
return (
<CountdownTimer
expiryDate={trade.map(prop('quoteExpireTime')).getOrElse(q.expiresAt.getTime())}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ export const COINIFY_GET_MEDIUM_ACCOUNTS_FAILURE = '@CORE.COINIFY_GET_MEDIUM_ACC
export const COINIFY_GET_BANK_ACCOUNTS = '@CORE.COINIFY_GET_BANK_ACCOUNTS'

export const COINIFY_ADD_BANK_ACCOUNT = '@CORE.COINIFY_ADD_BANK_ACCOUNT'
export const COINIFY_ADD_BANK_ACCOUNT_FAILURE = '@CORE.COINIFY_ADD_BANK_ACCOUNT_FAILURE'
export const COINIFY_ADD_BANK_ACCOUNT_LOADING = '@CORE.COINIFY_ADD_BANK_ACCOUNT_LOADING'
export const COINIFY_ADD_BANK_ACCOUNT_SUCCESS = '@CORE.COINIFY_ADD_BANK_ACCOUNT_SUCCESS'

export const COINIFY_SET_BANK_ACCOUNT = '@CORE.COINIFY_SET_BANK_ACCOUNT'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ export const getMediumAccountsFailure = (error) => ({ type: AT.COINIFY_GET_MEDIU
export const getMediumsWithBankAccounts = (quote) => ({ type: AT.COINIFY_GET_BANK_ACCOUNTS, payload: quote })

export const addBankAccount = (medium, account) => ({ type: AT.COINIFY_ADD_BANK_ACCOUNT, payload: { medium, account } })
export const addBankAccountFailure = (error) => ({ type: AT.COINIFY_ADD_BANK_ACCOUNT_FAILURE, payload: error })
export const addBankAccountLoading = () => ({ type: AT.COINIFY_ADD_BANK_ACCOUNT_LOADING })
export const addBankAccountSuccess = (account) => ({ type: AT.COINIFY_ADD_BANK_ACCOUNT_SUCCESS, payload: account })

export const setBankAccount = (account) => ({ type: AT.COINIFY_SET_BANK_ACCOUNT, payload: account })
Expand Down
11 changes: 1 addition & 10 deletions packages/blockchain-wallet-v4/src/redux/data/coinify/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export default ({ api, options }) => {

const fetchQuoteAndMediums = function * (data) {
try {
console.log('Fetch quote and mediums')
const { amt, baseCurrency, quoteCurrency, medium, type } = data.payload
const getQuote = type === 'sell'
? coinify.data.getSellQuote
Expand All @@ -136,7 +135,6 @@ export default ({ api, options }) => {
const fetchRateQuote = function * (data) {
try {
yield put(A.fetchQuoteLoading())
console.log('Fetch rate quote')
const { currency, type } = data.payload
const getQuote = type === 'sell' ? coinify.getSellQuote : coinify.getBuyQuote
const quote = yield apply(coinify, getQuote, [-1e8, 'BTC', currency])
Expand Down Expand Up @@ -206,7 +204,6 @@ export default ({ api, options }) => {
yield put(A.setBankAccount(bankAccount))
} catch (e) {
console.log(e)
// yield put(A.addBankAccountFailure(e))
}
}

Expand Down Expand Up @@ -250,7 +247,6 @@ export default ({ api, options }) => {
yield call(labelAddressForBuy, buyResult, addressData)
return buyResult
} catch (e) {
console.warn('buy failed in core', e)
yield put(A.handleTradeFailure(e))
}
}
Expand All @@ -263,7 +259,6 @@ export default ({ api, options }) => {

yield put(walletActions.setHdAddressLabel(addressData.accountIndex, addressData.index, `Coinify order #${id}`))
} catch (e) {
console.warn('err in labelAddressForBuy', e)
yield put(A.handleTradeFailure(e))
}
}
Expand All @@ -278,7 +273,6 @@ export default ({ api, options }) => {
yield call(getCoinify)
return sellResult
} catch (e) {
console.warn('sell failed in core', e)
yield put(A.handleTradeFailure(e))
}
}
Expand All @@ -302,7 +296,6 @@ export default ({ api, options }) => {
return kyc
} catch (e) {
yield put(A.handleTradeFailure(e))
console.log('failed to trigger KYC in core', e)
}
}

Expand All @@ -316,7 +309,6 @@ export default ({ api, options }) => {
yield put(A.getKYCSuccess(kyc))
return kyc
} catch (e) {
console.log('getKYCfailure', e)
yield put(A.getKYCFailure(e))
}
}
Expand All @@ -337,7 +329,6 @@ export default ({ api, options }) => {
yield put(A.getKYCSuccess(kyc))
}
} catch (e) {
console.log('pollKYCPending failure', e)
yield put(A.getKYCFailure(e))
}
}
Expand All @@ -347,7 +338,7 @@ export default ({ api, options }) => {
try {
yield put(A.handleTradeSuccess(kyc))
} catch (e) {
console.log('kycAsTrade failure', e)
yield put(A.handleTradeFailure(e))
}
}

Expand Down

0 comments on commit 8b046a4

Please sign in to comment.