everyvote / everyvote-townhall

Free and open source election platform

Home Page:https://everyvote.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create My Candidates page - make My Candidates page only show candidates you have marked as Voting For

mitchdowney opened this issue · comments

I made and pushed a non-functioning My Candidates page, but I don't know how to make the CandidatePicksService work right now. Have to make a getPicks method, that (somehow) grabs all the local users Voting For options and passes them in the posts object...

Do we need to run a loop over the getPick method, that checks each candidate to see if they have the voting for status in the local storage, then append the posts object with each result?

might have to change how the candidate picks service stores things so that it keeps a list of candidate ids updated. Your suggestion could work potentially too and may coincide with what I have cooking on the stove right now

This feature is only pseudo-working right now. To fix this feature properly we'll need to revert to this commit and understand what was causing the issue before moving forward 669ed49