Skip to content

Commit

Permalink
fix: typing boolean return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Mar 8, 2022
1 parent ca503a5 commit 6382e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/inertia/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class Router {
}

protected isLocationVisitResponse(response: AxiosResponse): boolean {
return response && response.status === 409 && response.headers['x-inertia-location']
return !!response && response.status === 409 && response.headers['x-inertia-location']
}

protected isInertiaResponse(response: AxiosResponse): boolean {
Expand Down

0 comments on commit 6382e2a

Please sign in to comment.