diff --git a/packages/chakra-components/src/components/Election/Questions/Form.tsx b/packages/chakra-components/src/components/Election/Questions/Form.tsx index 2cb6a35..866301c 100644 --- a/packages/chakra-components/src/components/Election/Questions/Form.tsx +++ b/packages/chakra-components/src/components/Election/Questions/Form.tsx @@ -43,7 +43,7 @@ export const QuestionsFormProvider: React.FC< return ( {children} diff --git a/packages/chakra-components/src/components/Election/Questions/Questions.tsx b/packages/chakra-components/src/components/Election/Questions/Questions.tsx index a0cbd2b..a46f2eb 100644 --- a/packages/chakra-components/src/components/Election/Questions/Questions.tsx +++ b/packages/chakra-components/src/components/Election/Questions/Questions.tsx @@ -73,7 +73,7 @@ export const ElectionQuestionsForm = ({ formId, onSubmit, onInvalid, ...rest }: - {renderWith?.length > 0 && + {renderWith?.length && renderWith.map(({ id }) => ( diff --git a/packages/chakra-components/src/components/Election/Questions/Voted.tsx b/packages/chakra-components/src/components/Election/Questions/Voted.tsx index 37ee58d..fd56782 100644 --- a/packages/chakra-components/src/components/Election/Questions/Voted.tsx +++ b/packages/chakra-components/src/components/Election/Questions/Voted.tsx @@ -12,7 +12,7 @@ export const MultiElectionVoted = () => { return null } const votes = Object.values(elections).map((e) => e.voted) - return + return } export const Voted = () => {