refactor: натравил форматтер на весь фронт
This commit is contained in:
@@ -70,7 +70,7 @@ export async function apiRequest<T>(
|
||||
? String((body as { message: unknown }).message)
|
||||
: typeof body === 'object' && body && 'detail' in body
|
||||
? String((body as { detail: unknown }).detail)
|
||||
: `API request failed with status ${response.status}`
|
||||
: `API request failed with status ${response.status}`
|
||||
throw new ApiError(message, response.status, body)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user