From 04f74977a1dc54d0498fdb97beeadc87f95c5f93 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Fri, 20 Oct 2023 09:48:03 -0400 Subject: [PATCH] Fix bug displaying error message when doi lookup fails (#1232) --- 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 } };