Skip to content

Commit e39533c

Browse files
Dima AlipovCodeWithEmad
Dima Alipov
authored andcommitted
fix: incorrect message for locking
1 parent 212014f commit e39533c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/containers/ReviewModal/ReviewErrors/LockErrors.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import ReviewError from './ReviewError';
1616
*/
1717
export class LockErrors extends React.Component {
1818
get errorProp() {
19-
if (this.props.errorStatus === ErrorStatuses.forbidden) {
19+
if (this.props.errorStatus === ErrorStatuses.conflict) {
2020
return {
2121
heading: messages.errorLockContestedHeading,
2222
message: messages.errorLockContested,

src/containers/ReviewModal/ReviewErrors/LockErrors.test.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('LockErrors component', () => {
4141
expect(el.snapshot).toMatchSnapshot();
4242
});
4343
test('snapshot: error with conflicted lock', () => {
44-
el = shallow(<LockErrors {...props} errorStatus={ErrorStatuses.forbidden} />);
44+
el = shallow(<LockErrors {...props} errorStatus={ErrorStatuses.conflict} />);
4545
expect(el.snapshot).toMatchSnapshot();
4646
});
4747
});

0 commit comments

Comments
 (0)