Skip to content

Commit

Permalink
fix: incorrect message for locking
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Alipov authored and Dima Alipov committed Mar 29, 2024
1 parent c644da3 commit 587f999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/ReviewModal/ReviewErrors/LockErrors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('LockErrors component', () => {
expect(el.instance().render()).toMatchSnapshot();
});
test('snapshot: error with conflicted lock', () => {
el.setProps({ errorStatus: ErrorStatuses.forbidden });
el.setProps({ errorStatus: ErrorStatuses.conflict });
expect(el.instance().render()).toMatchSnapshot();
});
});
Expand Down

0 comments on commit 587f999

Please sign in to comment.