mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix: ts fix
This commit is contained in:
parent
1fd618ba72
commit
0d6506012a
@ -11,7 +11,7 @@ export const handleFormError = (e: Error, setError?: FormErrorHandler) => {
|
||||
|
||||
if (setError) {
|
||||
const message = parseError(e)[0]
|
||||
setError(message)
|
||||
setError(message || 'Unknown message')
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user