Skip to content

Commit

Permalink
fix: empty error message
Browse files Browse the repository at this point in the history
  • Loading branch information
AXeL-dev committed Oct 15, 2022
1 parent 6f1effd commit cf1465e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/components/shared/ErrorAlert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export function ErrorAlert(props: ErrorAlertProps) {
};

const renderError = () => {
const errorMessage = error?.data?.error.message || error?.error;
const errorMessage =
error?.data?.error.message || error?.error || error?.message;
switch (errorMessage) {
case Error.MISSING_API_KEY:
case Error.INVALID_API_KEY:
Expand Down

0 comments on commit cf1465e

Please sign in to comment.