Skip to content

Commit

Permalink
Litt mer robust telling av antall svar for tema
Browse files Browse the repository at this point in the history
  • Loading branch information
SiLar92 committed Oct 18, 2024
1 parent f186a5d commit 995fb4d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/src/Pages/Virksomhet/Kartlegging/TemaResultat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,12 @@ export const TemaResultat = ({
{navn}
</Heading>
<AntallDeltakere
antallDeltakere={
spørsmålResultat[0]?.antallDeltakereSomHarSvart
}
antallDeltakere={Math.min(
...spørsmålResultat.map(
(spørsmål: SpørsmålResultatDto) =>
spørsmål.antallDeltakereSomHarSvart,
),
)}
/>
</HStack>
<TemaContainer>
Expand Down

0 comments on commit 995fb4d

Please sign in to comment.