diff --git a/app/views/ProfileView/index.js b/app/views/ProfileView/index.js index fd96e3445..1e2c2cc83 100644 --- a/app/views/ProfileView/index.js +++ b/app/views/ProfileView/index.js @@ -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) }));