(fieldName_1: string, error?: string)
| 343 | } |
| 344 | } |
| 345 | function updateValidationError(fieldName_1: string, error?: string) { |
| 346 | setValidationErrors(prev_0 => { |
| 347 | const next_0 = { |
| 348 | ...prev_0 |
| 349 | }; |
| 350 | if (error) { |
| 351 | next_0[fieldName_1] = error; |
| 352 | } else { |
| 353 | delete next_0[fieldName_1]; |
| 354 | } |
| 355 | return next_0; |
| 356 | }); |
| 357 | } |
| 358 | function unsetField(fieldName_2: string) { |
| 359 | if (!fieldName_2) return; |
| 360 | setField(fieldName_2, undefined); |
no outgoing calls
no test coverage detected