Commit bb1db1c7 authored by justinw's avatar justinw
Browse files

re-do first commit

parent d57b2c1b
......@@ -107,11 +107,11 @@ export function* listProposals({
const mungedProposals = proposals.map(p => {
console.log(
'ProposalSaga->listProposals()::proposalVotesIds.indexOf(p.proposal_id)',
proposalVotesIds.indexOf(p.proposal_id),
proposalVotesIds.includes(p.proposal_id),
proposalVotesIds
);
console.log('ProposalSaga->listProposals()::p', p, p.upVoted);
if (proposalVotesIds.indexOf(p.proposal_id) != 1) {
if (proposalVotesIds.includes(p.proposal_id)) {
p.upVoted = true;
} else {
p.upVoted = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment