diff --git a/src/component/audit/ErrorLogViewer.tsx b/src/component/audit/ErrorLogViewer.tsx index 4b1da63a..60206878 100644 --- a/src/component/audit/ErrorLogViewer.tsx +++ b/src/component/audit/ErrorLogViewer.tsx @@ -43,15 +43,9 @@ const ErrorLogViewer: React.FC = () => { {errors.map((item) => { let error = item.error; if (error.messageId) { - if (error.values && Object.keys(error.values).length > 0) { - error = Object.assign({}, error, { - message: formatMessage(error.messageId, error.values), - }); - } else { - error = Object.assign({}, error, { - message: i18n(error.messageId), - }); - } + error = Object.assign({}, error, { + message: formatMessage(error.messageId, error.values), + }); } return (