Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #285 from navikt/dev
Browse files Browse the repository at this point in the history
Prodsett bugfix FS-223011
  • Loading branch information
Mathiamu authored May 20, 2022
2 parents d2249f2 + 7a02964 commit 642233d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/paneler/innhold/personaliaV2/barn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function BorSammen(props: { barn: PersonsBarn }) {
function EnkeltBarn(props: { barn: PersonsBarn }) {
const { fornavn, fodselsdato, gradering, erEgenAnsatt, harVeilederTilgang } = props.barn;
const alder = finnAlder(props.barn);
const graderingTekst = gradering ? graderingBeskrivelseBarn(gradering) : null;
const graderingTekst = gradering && gradering !== Gradering.UGRADERT ? graderingBeskrivelseBarn(gradering) : null;

return (
<div className="overinformasjon underinformasjon innrykk">
Expand All @@ -31,7 +31,7 @@ function EnkeltBarn(props: { barn: PersonsBarn }) {
<UndertekstBold>{`Barn (${alder})`}</UndertekstBold>
<BorSammen barn={props.barn} />
</div>
) : gradering !== Gradering.UGRADERT && !harVeilederTilgang ? (
) : graderingTekst && !harVeilederTilgang ? (
<div>
<UndertekstBold>Barn</UndertekstBold>
{graderingTekst && <Normaltekst>{graderingTekst}</Normaltekst>}
Expand Down

0 comments on commit 642233d

Please sign in to comment.