added index

This commit is contained in:
ingawei 2022-10-12 16:52:25 -07:00
parent 9b24aaf349
commit 3336061691
2 changed files with 6 additions and 2 deletions

View File

@ -114,7 +114,9 @@ export function AnswersPanel(props: {
? 'checkbox' ? 'checkbox'
: undefined : undefined
const answersArray = useChartAnswers(contract).map((answer) => answer.text) const answersArray = useChartAnswers(contract).map(
(answer, _index) => answer.text
)
return ( return (
<Col className="gap-3"> <Col className="gap-3">

View File

@ -88,7 +88,9 @@ export function FreeResponseComments(props: {
commentsByParent, commentsByParent,
tips, tips,
} = props } = props
const answersArray = useChartAnswers(contract).map((answer) => answer.text) const answersArray = useChartAnswers(contract).map(
(answer, _index) => answer.text
)
return ( return (
<> <>
{answerResponse && ( {answerResponse && (