Skip to content
Prev Previous commit
Next Next commit
🤡
  • Loading branch information
aslilac committed Mar 14, 2024
commit 2992555a0914b2fe99ade4f73f67a50269185dff
2 changes: 1 addition & 1 deletion site/src/api/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const isApiError = (err: unknown): err is ApiError => {
export const isApiErrorResponse = (err: unknown): err is ApiErrorResponse => {
return (
typeof err === "object" &&
err != null &&
err !== null &&
"message" in err &&
typeof err.message === "string" &&
(!("detail" in err) ||
Expand Down