Skip to content

Commit

Permalink
Merge pull request #30 from dOrgTech/fix/polls
Browse files Browse the repository at this point in the history
Bug fix for Polls
  • Loading branch information
EightRice authored Jul 9, 2024
2 parents 17dbb6d + 2dafd8d commit 473edbd
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions components/polls/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ const addPoll = async (req, response) => {
throw new Error("Invalid Signature, Poll already exists");
}

const cidLink = await uploadToIPFS(
getIPFSProofFromPayload(payloadBytes, signature)
);
if (!cidLink) {
throw new Error(
"Could not upload proof to IPFS, Vote was not registered. Please try again later"
);
}
// const cidLink = await uploadToIPFS(
// getIPFSProofFromPayload(payloadBytes, signature)
// );
// if (!cidLink) {
// throw new Error(
// "Could not upload proof to IPFS, Vote was not registered. Please try again later"
// );
// }



Expand All @@ -183,7 +183,7 @@ const addPoll = async (req, response) => {
isXTZ,
payloadBytes,
signature,
cidLink
cidLink:""
};

let data = {
Expand Down

0 comments on commit 473edbd

Please sign in to comment.