- {!errorComments &&
}
- {errorComments && (
-
- Error loading comments
-
- )}
]}
banner={
diff --git a/pages/polling/review.tsx b/pages/polling/review.tsx
index 9dde9b9d0..1ec090242 100644
--- a/pages/polling/review.tsx
+++ b/pages/polling/review.tsx
@@ -22,7 +22,6 @@ import { PollListItem } from 'modules/polling/types';
import ReviewBox from 'modules/polling/components/review/ReviewBox';
import PageLoadingPlaceholder from 'modules/app/components/PageLoadingPlaceholder';
import { objectToGetParams, getNumberWithOrdinal } from 'lib/utils';
-import CommentTextBox from 'modules/comments/components/CommentTextBox';
import { useAccount } from 'modules/app/hooks/useAccount';
import { useWeb3 } from 'modules/web3/hooks/useWeb3';
import { isDefaultNetwork } from 'modules/web3/helpers/networks';
@@ -30,7 +29,6 @@ import { BallotContext } from 'modules/polling/context/BallotContext';
import ActivePollsBox from 'modules/polling/components/review/ActivePollsBox';
import { ShareVotesModal } from 'modules/polling/components/ShareVotesModal';
import InternalIcon from 'modules/app/components/Icon';
-import Markdown from 'modules/app/components/Makrdown';
import { InternalLink } from 'modules/app/components/InternalLink';
import { fetchPollingReviewPageData } from 'modules/polling/api/fetchPollingPageData';
import { SupportedNetworks } from 'modules/web3/constants/networks';
@@ -56,8 +54,7 @@ const PollingReview = ({ polls: activePolls, activePollIds, tags }: PollingRevie
setShowMarkdownModal(!showMarkdownModal);
};
- const { ballot, ballotStep, previousBallot, updateVoteFromBallot, transaction, ballotCount } =
- useContext(BallotContext);
+ const { ballot, previousBallot, transaction, ballotCount } = useContext(BallotContext);
const { account } = useAccount();
@@ -137,10 +134,9 @@ const PollingReview = ({ polls: activePolls, activePollIds, tags }: PollingRevie
);
option = markdownArray.reduce((previousValue, currentValue) => previousValue + currentValue);
}
- const comment = previousBallot[poll.pollId]?.comment;
+
markdown += `[${poll.title}](https://vote.makerdao.com/polling/${poll.slug}) ([thread](${poll.discussionLink})) \n`;
if (option) markdown += `Voted: ${option} \n`;
- markdown += comment ? `Reasoning: ${comment} \n` : ' \n';
markdown += ' \n';
});
return markdown;
@@ -169,7 +165,7 @@ const PollingReview = ({ polls: activePolls, activePollIds, tags }: PollingRevie