🐛 Sørger for at feilmelding som blir sendt fra frontend matcher feilmeldingsobjekt i backend

Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
This commit is contained in:
Amalie Mansåker 2023-08-01 10:32:15 +02:00 committed by Sindre Kjelsrud
parent 45f2815a7c
commit 7b0d3c3168

View file

@ -18,7 +18,9 @@ export default function Feil() {
const payload = {
tittel: tittel,
beskrivelse: beskrivelse,
dato: new Date().toISOString().replace('Z', '')
dato: new Date().toISOString().replace('Z', ''), // Litt wack fix, burde endres
arbeidsstatus: 0,
haster: false
}
axios.post("/api/nyfeil", payload, {