Skip to content

Commit

Permalink
fix - endless scroll btc/bch
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyncee59 committed Jun 20, 2018
1 parent f1e11c8 commit 512cb6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -36,7 +36,8 @@ export default ({ coreSagas }) => {
const threshold = 250
const { yMax, yOffset } = action.payload
if (yMax - yOffset < threshold) {
yield put(actions.core.data.bch.fetchTransactions(source, false))
const onlyShow = equals(source, 'all') ? '' : (source.xpub || source.address)
yield put(actions.core.data.bch.fetchTransactions(onlyShow, false))
}
} catch (e) {
yield put(actions.logs.logErrorMessage(logLocation, 'scrollUpdated', e))
Expand Down
Expand Up @@ -37,7 +37,8 @@ export default ({ coreSagas }) => {
const { yMax, yOffset } = action.payload

if (yMax - yOffset < threshold) {
yield put(actions.core.data.bitcoin.fetchTransactions(source, false))
const onlyShow = equals(source, 'all') ? '' : (source.xpub || source.address)
yield put(actions.core.data.bitcoin.fetchTransactions(onlyShow, false))
}
} catch (e) {
yield put(actions.logs.logErrorMessage(logLocation, 'scrollUpdated', e))
Expand Down

0 comments on commit 512cb6a

Please sign in to comment.