Browse Source

fix(ui): Remove translations from `handleXhrErrorResponse` (#50684)

Scott Cooper 1 year ago
parent
commit
b8b9e24cd3

+ 1 - 1
static/app/views/onboarding/onboarding.tsx

@@ -249,7 +249,7 @@ function Onboarding(props: Props) {
         project_id: recentCreatedProject.id,
       });
     } catch (error) {
-      handleXhrErrorResponse(t('Unable to delete project in onboarding'), error);
+      handleXhrErrorResponse('Unable to delete project in onboarding', error);
       // we don't give the user any feedback regarding this error as this shall be silent
     }
   }, [api, organization, recentCreatedProject, onboardingContext]);

+ 1 - 1
static/app/views/projectInstall/platform.tsx

@@ -258,7 +258,7 @@ export function ProjectInstallPlatform({location, params, route, router}: Props)
           project_id: recentCreatedProject.id,
         });
       } catch (error) {
-        handleXhrErrorResponse(t('Unable to delete project in project creation'), error);
+        handleXhrErrorResponse('Unable to delete project in project creation', error);
         // we don't give the user any feedback regarding this error as this shall be silent
       }
     }

+ 1 - 1
static/app/views/settings/projectIssueGrouping/upgradeGrouping.tsx

@@ -89,7 +89,7 @@ function UpgradeGrouping({
       ProjectsStore.onUpdateSuccess(response);
       onUpgrade();
     } catch (err) {
-      handleXhrErrorResponse(t('Unable to upgrade config'), err);
+      handleXhrErrorResponse('Unable to upgrade config', err);
     }
   }