(error: any)
| 157 | } |
| 158 | |
| 159 | function handleError(error: any) { |
| 160 | Toast.error( |
| 161 | error.status === 400 |
| 162 | ? JSON.parse(error.details) |
| 163 | .map((c: any) => c.message) |
| 164 | .join('\n') |
| 165 | : 'Something went wrong' |
| 166 | ); |
| 167 | } |
no test coverage detected