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

Commit

Permalink
Oppdater utils & opplysninger komponent
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnhlj committed Feb 28, 2024
1 parent 657b58a commit c738230
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@grafana/faro-web-tracing": "1.3.5",
"@navikt/aksel-icons": "5.13.0",
"@navikt/ds-react": "5.13.0",
"@navikt/arbeidssokerregisteret-utils": "0.10.0",
"@navikt/arbeidssokerregisteret-utils": "0.13.0",
"classnames": "2.5.1",
"core-js": "3.35.0",
"intersection-observer": "0.12.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import prettyPrintDato from '../../utils/pretty-print-dato';
import Feedback from '../feedback/feedback';
import Oppfolging from './oppfolging';

type OpplysningProps = { sporsmal: string; svar: Svar };
type OpplysningProps = { sporsmal: string; svar: Svar | string };
const Opplysning = (props: OpplysningProps) => {
const tekst = lagHentTekstForSprak(SPORSMAL_TEKSTER, useSprakValg().sprak);
const { sporsmal, svar } = props;
Expand Down Expand Up @@ -50,10 +50,6 @@ function mapNuskodeTilUtdannignsnivaa(nus: string) {
}

function getSisteStillingSvar(opplysninger: OpplysningerOmArbeidssoker) {
if (opplysninger.arbeidserfaring.harHattArbeid === 'NEI') {
return 'Ingen yrkeserfaring';
}

const detaljer = opplysninger.jobbsituasjon[0]?.detaljer;
return detaljer?.stilling || 'Ikke oppgitt';
}
Expand Down

0 comments on commit c738230

Please sign in to comment.