Skip to content

Commit

Permalink
Fix error message (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav-Velytskyi committed Jun 17, 2021
1 parent 525a50e commit 4da85ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/QuickMarcEditor/QuickMarcDuplicateWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const QuickMarcDuplicateWrapper = ({
error = {};
}

if (error.code === 'ILLEGAL_FIXED_LENGTH_CONTROL_FILED') {
if (error.code === 'ILLEGAL_FIXED_LENGTH_CONTROL_FIELD') {
messageId = 'ui-quick-marc.record.save.error.illegalFixedLength';
} else {
messageId = 'ui-quick-marc.record.save.error.generic';
Expand Down
2 changes: 1 addition & 1 deletion src/QuickMarcEditor/QuickMarcEditWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const QuickMarcEditWrapper = ({
error = {};
}

if (error.code === 'ILLEGAL_FIXED_LENGTH_CONTROL_FILED') {
if (error.code === 'ILLEGAL_FIXED_LENGTH_CONTROL_FIELD') {
messageId = 'ui-quick-marc.record.save.error.illegalFixedLength';
} else {
messageId = 'ui-quick-marc.record.save.error.generic';
Expand Down

0 comments on commit 4da85ac

Please sign in to comment.