Skip to content

Commit

Permalink
Bytter endepunkt for vilkårsvurdering
Browse files Browse the repository at this point in the history
  • Loading branch information
matsbyfl committed Oct 4, 2023
1 parent 94e58f2 commit dd61c20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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/steg/fatte_vedtak', async (req, res, ctx) => {
rest.put<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 @@ -31,7 +31,7 @@ export const VurderVilkår: React.FC = () => {
if (steg === StegType.GODKJENNE) {
setValgtTab(StegType.FATTE_VEDTAK)
} else {
put(`${baseUrl}/api/sak/${sakId}/steg/fatte_vedtak`)
put(`${baseUrl}/api/sak/${sakId}/vilkarsvurdering`)
.catch(() => setLagrer(false))
.then(() => {
setValgtTab(StegType.FATTE_VEDTAK)
Expand Down

0 comments on commit dd61c20

Please sign in to comment.