diff --git a/src/components/auth/authError/AuthError.jsx b/src/components/auth/authError/AuthError.jsx
index 1c0a20c..feee163 100644
--- a/src/components/auth/authError/AuthError.jsx
+++ b/src/components/auth/authError/AuthError.jsx
@@ -14,12 +14,8 @@ export default function AuthError({error, onClose = function() {}}) {
resetTimer();
if (error.payload && error.payload.canRepeatIn) {
- if (error.payload && error.payload.canRepeatIn) {
- error.payload.msLeft = error.payload.canRepeatIn * 1000;
- setTimeout(onClose, error.payload.msLeft - Date.now() + 1500); // 1500 to let the user see, that time is elapsed
- } else {
- // TODO: it would be greate to log this case, when we will setup frontend logging
- }
+ error.payload.msLeft = error.payload.canRepeatIn * 1000;
+ setTimeout(onClose, error.payload.msLeft - Date.now() + 1500); // 1500 to let the user see, that time is elapsed
}
return (
diff --git a/src/services/errorsDict.js b/src/services/errorsDict.js
index 3fce2d0..557a4fa 100644
--- a/src/services/errorsDict.js
+++ b/src/services/errorsDict.js
@@ -70,8 +70,10 @@ const errorsMap = {
'error.account_not_activated': () => ,
'error.email_frequency': (props) =>
}} />,
+ 'error.recently_sent_message': (props) => errorsMap['error.email_frequency'](props),
'error.email_not_found': () => ,
'error.account_already_activated': () => ,