Post method headers

Hi Im trying to post something on a component using

const [values, setValues]=useState(
{
bench:’’,
machine:’’,
fly:’’,
pushups:’’
})

and

const res = await fetch(${*API_URL*}/chests, {
method:‘POST’,

headers:
{‘Content-Type’: ‘application/json’},
body: JSON.stringify( values)
})

and this is the response

  1. {id: 8, published_at: ‘2021-10-11T12:59:51.273Z’, created_at: ‘2021-10-11T12:59:51.275Z’, updated_at: ‘2021-10-11T12:59:51.275Z’, upper: null}
  2. created_at: “2021-10-11T12:59:51.275Z”
  3. id: 8
  4. published_at: “2021-10-11T12:59:51.273Z”
  5. updated_at: “2021-10-11T12:59:51.275Z”
  6. upper: null
  7. [[Prototype]]: Object

i cant get to the upper component … what am I doing wrong here?

Hello.

Have you found the solution ? is it a type issue ?

Regards.