[FIX] Show proper error message on profile (#1768)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Sarthak Pranesh 2020-03-17 21:56:32 +05:30 committed by GitHub
parent d11277e691
commit 779cacbe3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class ProfileView extends React.Component {
} }
handleError = (e, func, action) => { 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); return showErrorAlert(e.data.error);
} }
showErrorAlert(I18n.t('There_was_an_error_while_action', { action: I18n.t(action) })); showErrorAlert(I18n.t('There_was_an_error_while_action', { action: I18n.t(action) }));