Skip to content

Commit

Permalink
Stop loading status when there was error
Browse files Browse the repository at this point in the history
  • Loading branch information
mishig25 committed May 6, 2023
1 parent b2ca092 commit c4af547
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/runCompletion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default async function runCompletion(

if(!res.ok){
console.error("Error sending a request", res.status, res.statusText);
setDefaultStatus();
return null;
}

Expand Down

0 comments on commit c4af547

Please sign in to comment.