-
-
Notifications
You must be signed in to change notification settings - Fork 242
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(coinmarket): Fix address label not showing in dropdown #9539
Conversation
const accountMetadata = useSelector( | ||
state => account && selectLabelingDataForAccount(state, account.key), | ||
); |
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.
const accountMetadata = useSelector( | |
state => account && selectLabelingDataForAccount(state, account.key), | |
); | |
const accountMetadata = useSelector( | |
state => selectLabelingDataForAccount(state, account?.key), | |
); |
If this component can be rendered without account
I believe it would be better to modify selectLabelingDataForAccount
so that it accepts undefined
as a key and handle it inside the method instead of this conditional selector
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.
Another option is to simply pass account?.key || ''
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.
if you are about to make changes to selector, please consider changes in selectors in this branch #9130 so that I don't have to solve too many conflicts :D
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.
fixed by account?.key || ''
as also used in other places
Fix address label not showing in dropdown.
Description
When user sets a label for any bitcoin or bitcoin-like receiving address, the label is then not showing in the exchange flow.
Related Issue
Resolve #9532
Screenshots: