Don't display status code twice in UI errors

This commit is contained in:
Igor Katson 2023-12-03 09:43:46 +00:00
parent 1947da3f26
commit 63a21a50fd
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ const makeRequest = async (method: string, path: string, data?: any): Promise<an
}
error.status = response.status;
error.statusText = response.statusText;
error.statusText = `${response.status} ${response.statusText}`;
if (!response.ok) {
const errorBody = await response.text();