Skip to content

Commit

Permalink
Fix bug displaying error message when doi lookup fails (#1232)
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton authored Oct 20, 2023
1 parent e81c484 commit 04f7497
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 04f7497

Please sign in to comment.