mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-11-23 01:54:37 +03:00
Update isHttpErrorWithExtraMessage
This commit is contained in:
parent
465856c220
commit
5c329a4c15
@ -39,5 +39,5 @@ function getRedirectUriForError(error: string): URL {
|
||||
}
|
||||
|
||||
function isHttpErrorWithExtraMessage(error: HttpError): error is HttpError & { data: { message: string } } {
|
||||
return error.data ? typeof (error.data as any).message === 'string' : false;
|
||||
return !!error.data && typeof (error.data as any).message === 'string';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user