-
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
Conversation
clicking on a tx causes a crash
|
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.
please check my comments
resolved
Resolved
resolved |
seems like this occurs when btc goes into recovery mode, might not be directly related to this PR |
- Fix error message when tabs are changed from staking to tx. - Use inactive overlay is wallet is not synced - clean up
fb297ff
to
decde53
Compare
follow up PR #268 |
…aoding multi wallet txs
ui/cryptomaterial/dropdown.go
Outdated
clickable := d.clickable | ||
if d.isOpen { | ||
radius = Radius(0) | ||
if item.clickable != nil { |
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 if d.isOpen
?
Because in line 159-162 above, we only give item
a value if itemIndex > -1
. So if itemIndex is -1, item will be nil.
And this point where you do if item.clickable != nil
will panic. Unless d.isOpen
is only true if itemIndex > -1
.
ui/cryptomaterial/dropdown.go
Outdated
clickable := d.clickable | ||
if d.isOpen { | ||
radius = Radius(0) | ||
if item.clickable != nil { |
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.
I don't see where this is done. Point me to it.
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'm yet to fully test but the code changes look okay now. Just these 2 comments.
fix #180