Skip to content

Commit

Permalink
Fix bug displaying error message when doi lookup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Oct 19, 2023
1 parent 368002b commit e979a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/workflow-basics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ export default class WorkflowBasics extends Component {
this.args.validateTitle();
this.args.validateJournal();
} catch (error) {
console.log(`DOI service request failed: ${error.payload.error}`);
console.log(`DOI service request failed: ${error}`);

this.clearDoiData(this.publication.doi);
set(this, 'doiServiceError', error.payload.error);
set(this, 'doiServiceError', error);
// eslint-disable-next-line newline-per-chained-call
}
};
Expand Down

0 comments on commit e979a9e

Please sign in to comment.