Skip to content

Commit

Permalink
retter feil i 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 15d993a commit f186a5d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions client/src/Pages/Virksomhet/Kartlegging/TemaResultat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@ export const TemaResultat = ({
{navn}
</Heading>
<AntallDeltakere
antallDeltakere={spørsmålResultat
.map(
(spørsmål: SpørsmålResultatDto) =>
spørsmål.antallDeltakereSomHarSvart,
)
.reduce(
(accumulator, current) => accumulator + current,
)}
antallDeltakere={
spørsmålResultat[0]?.antallDeltakereSomHarSvart
}
/>
</HStack>
<TemaContainer>
Expand Down

0 comments on commit f186a5d

Please sign in to comment.