From da5fa5b9b7c39b571264892596555b576d5c4c67 Mon Sep 17 00:00:00 2001 From: jain-naman-sf Date: Mon, 30 Oct 2023 15:29:46 +0530 Subject: [PATCH] Revert "Fixed 500 status code bad error reporting" This reverts commit bd0d962d8a37a3a24fc95d9415f13460e93d0d7e. --- src/js/utils/api.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/js/utils/api.ts b/src/js/utils/api.ts index 87c36251a2..32428dfa2c 100644 --- a/src/js/utils/api.ts +++ b/src/js/utils/api.ts @@ -62,9 +62,6 @@ const apiFetch = ( if (suppressErrorsOn.includes(response.status)) { return null; } - if (response.status === 500) { - return 'Something went Wrong'; - } let msg = response.statusText; if (body) { if (typeof body === 'string') {