Skip to content

Commit

Permalink
fix(transactions): properly check reset flag before making fiat tx re…
Browse files Browse the repository at this point in the history
…quest
  • Loading branch information
schnogz committed Dec 7, 2020
1 parent 3af479e commit 475a502
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/blockchain-wallet-v4/src/redux/data/fiat/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export default ({ api }: { api: APIType }) => {
// fetch sb transactions
sbTransactions = yield call(api.getSBTransactions, {
currency: action.payload.currency,
fromId: nextSbTxId,
fromValue: nextSbTxTimestamp,
fromId: reset ? undefined : nextSbTxId,
fromValue: reset ? undefined : nextSbTxTimestamp,
limit: PAGE_SIZE
})

Expand All @@ -82,7 +82,7 @@ export default ({ api }: { api: APIType }) => {
api.getUnifiedSwapTrades,
currency as CoinType,
PAGE_SIZE,
nextSwapPageTimestamp
reset ? undefined : nextSwapPageTimestamp
)

// create a view model that looks like a SB transaction for easier component rendering
Expand Down

0 comments on commit 475a502

Please sign in to comment.