Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Create redux logic for storing token settings - closes #1948 #1964
What issue have I solved?
How have I implemented/fixed it?
Update the settings reducer file adding one more field token in the same way as the mobile team has it, then add a function that will help to validate and update the active token based on the incoming data.
In the other hand I update the actions/settings.js file for add the a new action creator that will be on charge to update the token of the settings reducer
How has this been tested?
Right now there is only logic for this functionality and not something that can be trigger from the UI so that way I tested was triggering/dispatching the settingsUpdateToken action with data and see if the reducer state update based on that.
You can change the active value from LSK to BTC and see how the active token now change.