-
Notifications
You must be signed in to change notification settings - Fork 25
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: token duplication on dashboard #431
Conversation
* @param {unknown} props.header | ||
* @param {boolean} props.renderArrow | ||
* @param {function} props.onItemPress | ||
*/ | ||
const TokenSelect = (props) => { | ||
const tokens = Object.values(props.tokens); |
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 tokens = Object.values(props.tokens); | |
const tokens = getRegisteredTokenUids(props); |
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.
He is getting the token objects here. The method getRegisteredTokenUids
gets only the uid, if I'm not wrong.
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.
That's correct, @pedroferreira1. We should stick with the object here, not the uid.
* @param {unknown} props.header | ||
* @param {boolean} props.renderArrow | ||
* @param {function} props.onItemPress | ||
*/ | ||
const TokenSelect = (props) => { | ||
const tokens = Object.values(props.tokens); |
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.
He is getting the token objects here. The method getRegisteredTokenUids
gets only the uid, if I'm not wrong.
* fix: token duplication on dashboard * lint: comply with rules
* fix: token duplication on dashboard * lint: comply with rules
* fix: token duplication on dashboard * lint: comply with rules
* fix: token duplication on dashboard * lint: comply with rules
Issue
Closes: https://github.com/HathorNetwork/internal-issues/issues/242
@pedroferreira1 has investigated the these of migration be the culprit and has confirmed it. See the investigation note.
Despite we didn't need a fix anymore, we will proceed to avoid this problem in the future.
Acceptance Criteria
The following recording shows operations with token, register, unregister and creation to demonstrate these operations were not effected by the fix/refactoring:
RocketSim_Recording_iPhone_15_6.1_2024-02-16_14.37.24.mp4
Security Checklist