fix application is blank page if choosing custom speech vendor (#361)

This commit is contained in:
Hoan Luu Huu
2023-12-06 21:06:57 +07:00
committed by GitHub
parent aa7889a0d8
commit eae674b992
@@ -94,7 +94,7 @@ export const SpeechProviderSelection = ({
useEffect(() => {
currentVendor.current = synthVendor;
if (!synthesis) {
if (!synthesis || synthVendor.startsWith("custom:")) {
return;
}
const voiceOpts = synthesis[synthVendor as keyof SynthesisVendors]