Skip to content

Commit

Permalink
Fix for Polls
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Jul 9, 2024
1 parent 17dbb6d commit 2dafd8d
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 2dafd8d

Please sign in to comment.