Unverified Commit 779cacbe authored by Sarthak Pranesh's avatar Sarthak Pranesh Committed by GitHub
Browse files

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


Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent d11277e6
......@@ -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) }));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment