From 779cacbe3eff12661ea2280afec9f31332828718 Mon Sep 17 00:00:00 2001 From: Sarthak Pranesh <41206172+sarthakpranesh@users.noreply.github.com> Date: Tue, 17 Mar 2020 21:56:32 +0530 Subject: [PATCH] [FIX] Show proper error message on profile (#1768) Co-authored-by: Diego Mello --- app/views/ProfileView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }));