Commit 27be35e
authored
Update onSubmit return type
Frontend patientor repo linked in exercise 9.8 has return type of void, not Promise<void>. 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.1 parent d1a1cfd commit 27be35e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments