Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(homefeed): avoid showing 'no more transactions' toast when too few transactions #2783

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

kathaypacific
Copy link
Collaborator

Description

Annoyingly, the onEndReached callback is triggered on the SectionList used to render the transaction feed when navigating away from the screen on iOS, when the transaction list is too short. This causes the "no more transactions" toast to appear on the next page that is navigated to, but only once.

This check for length of transactions used to exist, and I had removed it thinking it was strange #2779 (comment) - but it seems like we need it.

Other changes

N/A

Tested

Manually

How others should test

N/A

Related issues

N/A

Backwards compatibility

Yes

@codecov
Copy link

codecov bot commented Aug 12, 2022

Codecov Report

Merging #2783 (b3988b9) into main (88fd4a5) will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2783   +/-   ##
=======================================
  Coverage   79.74%   79.74%           
=======================================
  Files         600      600           
  Lines       21739    21741    +2     
  Branches     3958     3960    +2     
=======================================
+ Hits        17335    17338    +3     
+ Misses       4356     4355    -1     
  Partials       48       48           
Impacted Files Coverage Δ
src/transactions/feed/queryHelper.ts 90.80% <66.66%> (-0.97%) ⬇️
src/tokens/utils.ts 97.05% <0.00%> (-2.95%) ⬇️
src/web3/saga.ts 80.80% <0.00%> (+3.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88fd4a5...b3988b9. Read the comment docs.

@kathaypacific kathaypacific added the automerge Have PR merge automatically when checks pass label Aug 12, 2022
@mergify mergify bot merged commit 9787ecc into main Aug 12, 2022
@mergify mergify bot deleted the kathy/fix-ios-transactions-error branch August 12, 2022 15:01
kathaypacific added a commit that referenced this pull request Aug 15, 2022
…w transactions (#2783)

### Description

Annoyingly, the `onEndReached` callback is triggered on the SectionList used to render the transaction feed when navigating away from the screen on iOS, when the transaction list is too short. This causes the "no more transactions" toast to appear on the next page that is navigated to, but only once. 

This check for length of transactions used to exist, and I had removed it thinking it was strange #2779 (comment) - but it seems like we need it.

### Other changes

N/A

### Tested

Manually

### How others should test

N/A

### Related issues

N/A

### Backwards compatibility

Yes
@ValoraQA
Copy link

Hey @MuckT since NA is mentioned in how others should test section ,we are skipping this PR

Cc: @kathaypacific
Thanks.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants