Browse Source

bugfix

master
Gaëtan Renaudeau 7 years ago
parent
commit
3ba6d4e83e
  1. 3
      src/bridge/EthereumJSBridge.js
  2. 2
      src/helpers/countervalues.js

3
src/bridge/EthereumJSBridge.js

@ -234,7 +234,8 @@ const EthereumBridge: WalletBridge<Transaction> = {
complete() complete()
} else { } else {
operations = operations.filter( operations = operations.filter(
o => !o.blockHeight || blockHeight - o.blockHeight < SAFE_REORG_THRESHOLD, // only keep operations that have enough confirmations
o => o.blockHeight && blockHeight - o.blockHeight > SAFE_REORG_THRESHOLD,
) )
const blockHash = operations.length > 0 ? operations[0].blockHash : undefined const blockHash = operations.length > 0 ? operations[0].blockHash : undefined
const { txs } = await api.getTransactions(freshAddress, blockHash) const { txs } = await api.getTransactions(freshAddress, blockHash)

2
src/helpers/countervalues.js

@ -20,7 +20,7 @@ const pairsSelector = createSelector(
[ [
{ from: intermediaryCurrency, to: counterValueCurrency, exchange: counterValueExchange }, { from: intermediaryCurrency, to: counterValueCurrency, exchange: counterValueExchange },
].concat( ].concat(
currencies.map(currency => ({ currencies.filter(c => c !== intermediaryCurrency).map(currency => ({
from: currency, from: currency,
to: intermediaryCurrency, to: intermediaryCurrency,
exchange: currencySettingsSelector(state, { currency }).exchange, exchange: currencySettingsSelector(state, { currency }).exchange,

Loading…
Cancel
Save