[FIX] Show proper error message on profile (#1768)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
d11277e691
commit
779cacbe3e
|
@ -155,7 +155,7 @@ class ProfileView extends React.Component {
|
|||
}
|
||||
|
||||
handleError = (e, func, action) => {
|
||||
if (e.data && e.data.errorType === 'error-too-many-requests') {
|
||||
if (e.data && e.data.error.includes('[error-too-many-requests]')) {
|
||||
return showErrorAlert(e.data.error);
|
||||
}
|
||||
showErrorAlert(I18n.t('There_was_an_error_while_action', { action: I18n.t(action) }));
|
||||
|
|
Loading…
Reference in New Issue