This commit is contained in:
Andreas
2023-12-28 16:35:08 +07:00
parent 90bd1db9c0
commit 1758edddc4
6 changed files with 8 additions and 21 deletions

View File

@@ -22,16 +22,9 @@ const useCreateTranscript = (): UseTranscript => {
setLoading(true);
console.log(
"POST - /v1/transcripts/ - Requesting new transcription creation",
transcriptCreationDetails,
api,
);
api
.v1TranscriptsCreate(transcriptCreationDetails)
.then((transcript) => {
console.debug("New transcript created:", transcript);
setTranscript(transcript);
setLoading(false);
})
@@ -43,9 +36,6 @@ const useCreateTranscript = (): UseTranscript => {
setErrorState(err);
setLoading(false);
})
.finally(() => {
console.log("At least this should display?");
});
};
return { transcript, loading, error, create };