A couple of pages (FindPoll.js and VotingBooth.js) make identical calls to the database in order to populate the poll data. It should be possible to re-factor this to a higher level call that then passes state down to the FindPoll and VotingBooth pages. Then you aren't re-calling your connection to the database, and that will be slightly more efficient.
A couple of pages (FindPoll.js and VotingBooth.js) make identical calls to the database in order to populate the poll data. It should be possible to re-factor this to a higher level call that then passes state down to the FindPoll and VotingBooth pages. Then you aren't re-calling your connection to the database, and that will be slightly more efficient.