Skip to content

Commit

Permalink
PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjeevLakhwani committed Aug 1, 2023
1 parent 43d9c75 commit cadbfb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const _networkAction =
});
if (onSuccess) await onSuccess(data);
} catch (e) {
const errorMsg = err + (e.message ? `: ${e.message}` : "");
const errorMsg = err ? (err + (e.message ? `: ${e.message}` : "") ) : e.message;
console.error(e, errorMsg);
message.error(errorMsg);
dispatch({ type: types.ERROR, ...params, caughtError: e });
Expand Down

0 comments on commit cadbfb5

Please sign in to comment.