Store user information in localstorage on login:
- User details
- Wallet Address - Completed
- Needed to have a wallet sign the vote.
- Coin Balance
Example: key:userdetails, value:{"wallet":"walletadress","balance":"number"}
Store poll information localstorage:
- All polls
- Onload of polls page check if a new poll has been made.
- Also should do a status check for polls to update data this way the UI can reflect the votes that are done.
Example: key:polls, value:{array of polls}
- Users votes
- Used to show in the UI if the users have voted on a poll.
- Onload of the polls page, it should also make a list of all votes the user has made.
Example: key:votes, value:{array of votes}
Store user information in localstorage on login:
Example: key:userdetails, value:{"wallet":"walletadress","balance":"number"}Store poll information localstorage:
Example: key:polls, value:{array of polls}Example: key:votes, value:{array of votes}