Skip to content

Commit

Permalink
fix(fiat): ensure we always refetch transactions when reset is true
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed Dec 11, 2020
1 parent 8df6be4 commit 8a07f2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/blockchain-wallet-v4/src/redux/data/fiat/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ export default ({ api }: { api: APIType }) => {
// 1) no transactions exist
// 2) we have a next SB data stored (last tx id and timestamp)
// 3) we have a next swap page timestamp
// 4) reset === true
if (
!data?.page.length ||
(nextSbTxId && nextSbTxTimestamp) ||
nextSwapPageTimestamp
nextSwapPageTimestamp ||
reset
) {
// fetch sb transactions
sbTransactions = yield call(api.getSBTransactions, {
Expand Down

0 comments on commit 8a07f2a

Please sign in to comment.