Skip to content

Commit

Permalink
put til post
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbyfl committed Oct 4, 2023
1 parent dd61c20 commit 283cf4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/mocks/handlers/saksbehandling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const saksbehandlingHandlers: StoreHandlersFactory = ({ sakStore, barnebr
} = await req.json<EndreHjelpemiddelRequest>()
return res(ctx.status(200), ctx.json({}))
}),
rest.put<any, { sakId: string }, any>('/api/sak/:sakId/vilkarsvurdering', async (req, res, ctx) => {
rest.post<any, { sakId: string }, any>('/api/sak/:sakId/vilkarsvurdering', async (req, res, ctx) => {
await barnebrillesakStore.oppdaterSteg(req.params.sakId, StegType.FATTE_VEDTAK)
return res(ctx.delay(1000), ctx.status(200), ctx.json({}))
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useParams } from 'react-router'

import { Alert, Button, Heading, Panel, Table } from '@navikt/ds-react'

import { baseUrl, put } from '../../../../io/http'
import { baseUrl, post, put } from '../../../../io/http'

import { AlertContainer } from '../../../../felleskomponenter/AlertContainer'
import { Knappepanel } from '../../../../felleskomponenter/Button'
Expand Down Expand Up @@ -31,7 +31,7 @@ export const VurderVilkår: React.FC = () => {
if (steg === StegType.GODKJENNE) {
setValgtTab(StegType.FATTE_VEDTAK)
} else {
put(`${baseUrl}/api/sak/${sakId}/vilkarsvurdering`)
post(`${baseUrl}/api/sak/${sakId}/vilkarsvurdering`, {})
.catch(() => setLagrer(false))
.then(() => {
setValgtTab(StegType.FATTE_VEDTAK)
Expand Down

0 comments on commit 283cf4c

Please sign in to comment.