From e979a9e4f70dab1e2e6fddc6c32f627c9f2cc041 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Thu, 19 Oct 2023 14:15:30 -0400 Subject: [PATCH] Fix bug displaying error message when doi lookup fails --- app/components/workflow-basics/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/workflow-basics/index.js b/app/components/workflow-basics/index.js index 303e303a..ed52483a 100644 --- a/app/components/workflow-basics/index.js +++ b/app/components/workflow-basics/index.js @@ -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 } };