Skip to content

Commit

Permalink
Lagt til console logger for å finne ut hvordan id på barn utarter seg.
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnsteingarmo committed Dec 11, 2023
1 parent 9dbcbbd commit 80765ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { ESkjemanavn } from './utils/skjemanavn';
import { useLokalIntlContext } from './context/LokalIntlContext';
import { Alert, Loader } from '@navikt/ds-react';
import { IBarn } from './models/steg/barn';
import { consoleLogLokaltOgDev } from './utils/logLokaltOgDev';

const App = () => {
const [autentisert, settAutentisering] = useState<boolean>(false);
Expand All @@ -44,6 +45,7 @@ const App = () => {
const fetchPersonData = () => {
return hentPersonData()
.then((response) => {
consoleLogLokaltOgDev(response, 'App.tsx response');
settPerson({
type: PersonActionTypes.HENT_PERSON,
payload: response,
Expand Down Expand Up @@ -71,7 +73,7 @@ const App = () => {

const oppdaterSøknadMedBarn = (person: IPerson, barneliste: IBarn[]) => {
const barnMedLabels = oppdaterBarnMedLabel(barneliste, intl);

consoleLogLokaltOgDev(barnMedLabels, 'App.tsx barnMedLabels');
settSøknad((prevSøknad) => ({
...prevSøknad,
person: { ...person, barn: barnMedLabels },
Expand Down
1 change: 0 additions & 1 deletion src/barnetilsyn/BarnetilsynContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import { oppdaterBarneliste, oppdaterBarnIBarneliste } from '../utils/barn';
import { LocaleType } from '../language/typer';
import { consoleLogLokaltOgDev } from '../utils/logLokaltOgDev';

// ----------- CONTEXT -----------
const initialState = (intl: LokalIntlShape): ISøknad => {
return {
person: tomPerson,
Expand Down
1 change: 0 additions & 1 deletion src/barnetilsyn/steg/3-barnadine/BarnaDine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { RoutesBarnetilsyn } from '../../routing/routesBarnetilsyn';
import { hentPathBarnetilsynOppsummering } from '../../utils';
import Side, { ESide } from '../../../components/side/Side';
import { Stønadstype } from '../../../models/søknad/stønadstyper';

import LocaleTekst from '../../../language/LocaleTekst';
import { logSidevisningBarnetilsyn } from '../../../utils/amplitude';
import { useMount } from '../../../utils/hooks';
Expand Down

0 comments on commit 80765ef

Please sign in to comment.