Frontend patientor repo linked in exercise 9.8 has return type of void, not Promise. We do not actually return anything from the submitNewPatient function, it is only used to set state (patients or error). If my line of thinking is wrong and material is correct then I think the patientor repo should be updated to reflect the material.
Frontend patientor repo linked in exercise 9.8 has return type of void, not Promise. We do not actually return anything from the submitNewPatient function, it is only used to set state (patients or error). If my line of thinking is wrong and material is correct then I think the patientor repo should be updated to reflect the material.