mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
remove console logs
This commit is contained in:
@@ -37,7 +37,6 @@ const useTranscript = (
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
const shouldShowHuman = shouldShowError(error);
|
const shouldShowHuman = shouldShowError(error);
|
||||||
console.log({ ...error });
|
|
||||||
if (shouldShowHuman) {
|
if (shouldShowHuman) {
|
||||||
setError(error, "There was an error loading the transcript");
|
setError(error, "There was an error loading the transcript");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ const useWaveform = (protectedPath, id: string): AudioWaveFormResponse => {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
setErrorState(err);
|
setErrorState(err);
|
||||||
console.log(err);
|
|
||||||
const shouldShowHuman = shouldShowError(err);
|
const shouldShowHuman = shouldShowError(err);
|
||||||
if (shouldShowHuman) {
|
if (shouldShowHuman) {
|
||||||
setError(err, "There was an error loading the waveform");
|
setError(err, "There was an error loading the waveform");
|
||||||
|
|||||||
@@ -14,9 +14,7 @@ export default function getApi(protectedPath: boolean): DefaultApi | undefined {
|
|||||||
if (!api_url) throw new Error("no API URL");
|
if (!api_url) throw new Error("no API URL");
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// console.log('trying auth', protectedPath, requireLogin, accessTokenInfo)
|
|
||||||
if (protectedPath && requireLogin && !accessTokenInfo) {
|
if (protectedPath && requireLogin && !accessTokenInfo) {
|
||||||
// console.log('waiting auth')
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user