diff --git a/components/TransactionsList/index.tsx b/components/TransactionsList/index.tsx index b1b10d78..997945d6 100644 --- a/components/TransactionsList/index.tsx +++ b/components/TransactionsList/index.tsx @@ -2,7 +2,7 @@ import EthAddressBadge from "@components/EthAddressBadge"; import Table from "@components/Table"; import TransactionBadge from "@components/TransactionBadge"; import { parseProposalText } from "@lib/api/treasury"; -import { VOTING_SUPPORT_MAP } from "@lib/api/types/votes"; +import { POLL_VOTES, VOTING_SUPPORT_MAP } from "@lib/api/types/votes"; import dayjs from "@lib/dayjs"; import { Badge, Box, Flex, Link as A, Text } from "@livepeer/design-system"; import { EventsQueryResult, TreasuryProposal } from "apollo"; @@ -344,24 +344,19 @@ const TransactionsList = ({ event?.param ?? "unknown" }, has been updated`} ); - case "VoteEvent": + case "VoteEvent": { + const vote = POLL_VOTES[event?.choiceID]; return ( {`Voted `} - - {+event?.choiceID === 0 ? '"For"' : '"Against"'} + + {`"${vote.text}"`} {` on a proposal`} {renderEmoji("👩‍⚖️")} ); + } case "PollCreatedEvent": return (