fix(ui): error handling

This commit is contained in:
Shekar Siri 2025-02-04 12:55:21 +01:00
parent 7485016f92
commit 047a4d0108

View file

@ -189,7 +189,7 @@ export default class APIClient {
if (response.ok) {
return response;
}
let errorMsg = `Something went wrong. Status: ${response.status}`;
let errorMsg = `Something went wrong.`;
try {
const errorData = await response.json();
errorMsg = errorData.errors?.[0] || errorMsg;