mirror of
https://github.com/hazemKrimi/touch-programming.git
synced 2026-05-01 18:20:26 +00:00
Update error handling and nginx conf wip
This commit is contained in:
@@ -28,7 +28,10 @@ function Typing() {
|
||||
`${import.meta.env.VITE_API_URL}/generate?lang=${lang}`,
|
||||
);
|
||||
|
||||
if (!response.ok || !response.body) return;
|
||||
if (!response.ok || !response.body) {
|
||||
setError(true);
|
||||
return;
|
||||
}
|
||||
|
||||
const reader = response.body.getReader();
|
||||
const decoder = new TextDecoder();
|
||||
|
||||
Reference in New Issue
Block a user