diff --git a/packages/app/src/Element/Poll.tsx b/packages/app/src/Element/Poll.tsx index 0aa74ebf..e6d522e9 100644 --- a/packages/app/src/Element/Poll.tsx +++ b/packages/app/src/Element/Poll.tsx @@ -1,7 +1,7 @@ import { TaggedRawEvent } from "@snort/nostr"; import { useState } from "react"; import { useSelector } from "react-redux"; -import { FormattedNumber, useIntl } from "react-intl"; +import { FormattedMessage, FormattedNumber, useIntl } from "react-intl"; import { ParsedZap } from "Element/Zap"; import Text from "Element/Text"; @@ -87,6 +87,14 @@ export default function Poll(props: PollProps) { const allTotal = props.zaps.filter(a => a.pollOption !== undefined).reduce((acc, v) => (acc += v.amount), 0); return ( <> + + +
{options.map(a => { const opt = Number(a[1]);