Skip to content

Commit

Permalink
UIBULKED-210 fix handling error message (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaSedyx authored Feb 15, 2024
1 parent c9320bb commit 8ac2842
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const IdentifierTab = () => {
step: EDITING_STEPS.UPLOAD,
});

if (errorMessage.includes(ERRORS.TOKEN)) throw Error(ERRORS.TOKEN);
if (errorMessage?.includes(ERRORS.TOKEN)) throw Error(ERRORS.TOKEN);
if (status === JOB_STATUSES.FAILED) throw Error();

history.replace({
Expand Down

0 comments on commit 8ac2842

Please sign in to comment.