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

Remove Number of Transactions & Total Transactions from Activity Page #2612

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

jseagrave21
Copy link
Contributor

What current issue(s) from Trello/Github does this address?
#2602

What problem does this PR solve?
This fixes the problem of displaying an incorrect total number of transactions for a wallet address. This problem stems from inconsistencies with totalCount. Refer to the issue for more details.

How did you solve this problem?
I removed the number of transactions (transactions.length) and the total number of transactions (count) from the Activity page. Then I added logic to ensure the Load More button is disabled when there are no more transactions to load. Specifically, now we check to see if there is a next page after we load each page from Dora. If there isn't, the count is set to the total number of transactions loaded (entries.length). The new logic does not affect the Neo Legacy logic, so it still disables the Load More button accurately using count as before.

How did you make sure your solution works?
Live testing with a Neo Legacy address,and two Neo3 addresses, one of which only had a single page of transactions.

Are there any special changes in the code that we should be aware of?
Nothing additional.

Is there anything else we should know?
No.

@jseagrave21
Copy link
Contributor Author

Requesting a review. @melanke @raulduartep @comountainclimber

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant