-
Notifications
You must be signed in to change notification settings - Fork 30
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
Home page transaction entry #198
Merged
Merged
Changes from 21 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
a0b5b5a
add tx entry page to the home page
Sirmorrison 1746438
add transaction entry point
Sirmorrison 442a17d
use wallet selector, fix tx details crash
Sirmorrison 2026e3e
fix dropdown refresh
Sirmorrison f306c83
fix right padding, show sync err, add wallet dropdown
Sirmorrison 27fd53f
fix staking activity fetching bug
Sirmorrison a702b17
rebase pr
Sirmorrison 5f4a18b
Fix excess right padding
Sirmorrison f4b3982
remove asset name
Sirmorrison e31f617
rebase pr
Sirmorrison f53eec4
conditionally display segment and wallet selector, code clean up
Sirmorrison 28e6b2a
code clean up and optimzation
Sirmorrison 4d2227b
pr rebase
Sirmorrison c1b1bd3
implement wallet txs fetching
Sirmorrison f8108f0
set default wallet dropdown selection to none, fix staking crash
Sirmorrison fdd3fc5
rebase pr
Sirmorrison 97c0c53
fix lint error
Sirmorrison 022384e
code clean up review
Sirmorrison ae82974
rebase pr
Sirmorrison f23cac8
fix lint error
Sirmorrison 8bf5dfe
implement partial infinite scroll to prevent app from freezing when l…
Sirmorrison 3b9eef7
further code clean up
Sirmorrison ac1dda4
remove redunant lines of code
Sirmorrison 094899d
revert changes
Sirmorrison File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
item
will be nil ifitemIndex == -1
and this code will panic.This method also uses
item
in some places below which will crash ifitem
is nil. Previously,item
cannot be nil and the code here was safe. Now it can be nil and could panic.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Possible areas where items could panic was addressed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you basically saying that
item
cannot be nil ifd.isOpen
?Because in line 159-162 above, we only give
item
a value ifitemIndex > -1
. So if itemIndex is -1, item will be nil.And this point where you do
if item.clickable != nil
will panic. Unlessd.isOpen
is only true ifitemIndex > -1
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where this is done. Point me to it.