fix unhandle error
This commit is contained in:
@@ -2,7 +2,6 @@ import * as sdk from "microsoft-cognitiveservices-speech-sdk";
|
||||
import { useContext } from "react";
|
||||
import { AppSettingsProviderContext } from "@renderer/context";
|
||||
import camelcaseKeys from "camelcase-keys";
|
||||
import { toast } from "@renderer/components/ui";
|
||||
|
||||
export const usePronunciationAssessments = () => {
|
||||
const { webApi, EnjoyApp } = useContext(AppSettingsProviderContext);
|
||||
@@ -19,7 +18,7 @@ export const usePronunciationAssessments = () => {
|
||||
recording = await EnjoyApp.recordings.findOne(targetId);
|
||||
}
|
||||
|
||||
EnjoyApp.recordings.sync(recording.id).catch((err) => toast.error(err));
|
||||
EnjoyApp.recordings.sync(recording.id);
|
||||
const blob = await (await fetch(recording.src)).blob();
|
||||
targetId = recording.id;
|
||||
targetType = "Recording";
|
||||
|
||||
Reference in New Issue
Block a user