From 36c976358786913be95065887b23588eb22030e6 Mon Sep 17 00:00:00 2001 From: ihor-romaniuk Date: Thu, 5 Dec 2024 09:22:22 +0100 Subject: [PATCH] fix: incorrect message for locking --- src/containers/ReviewModal/ReviewErrors/LockErrors.jsx | 2 +- src/containers/ReviewModal/ReviewErrors/LockErrors.test.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/ReviewModal/ReviewErrors/LockErrors.jsx b/src/containers/ReviewModal/ReviewErrors/LockErrors.jsx index 080a2fac..5a3b9854 100644 --- a/src/containers/ReviewModal/ReviewErrors/LockErrors.jsx +++ b/src/containers/ReviewModal/ReviewErrors/LockErrors.jsx @@ -16,7 +16,7 @@ import ReviewError from './ReviewError'; */ export class LockErrors extends React.Component { get errorProp() { - if (this.props.errorStatus === ErrorStatuses.forbidden) { + if (this.props.errorStatus === ErrorStatuses.conflict) { return { heading: messages.errorLockContestedHeading, message: messages.errorLockContested, diff --git a/src/containers/ReviewModal/ReviewErrors/LockErrors.test.jsx b/src/containers/ReviewModal/ReviewErrors/LockErrors.test.jsx index 87004c1c..cf92f365 100644 --- a/src/containers/ReviewModal/ReviewErrors/LockErrors.test.jsx +++ b/src/containers/ReviewModal/ReviewErrors/LockErrors.test.jsx @@ -41,7 +41,7 @@ describe('LockErrors component', () => { expect(el.snapshot).toMatchSnapshot(); }); test('snapshot: error with conflicted lock', () => { - el = shallow(); + el = shallow(); expect(el.snapshot).toMatchSnapshot(); }); });