Merge pull request #113 from storytold/fix-build-errors

Fix build errors
This commit is contained in:
Brandon Thomas authored and GitHub committed 2022-10-19 01:08:17 -04:00
commit c9f91ae408
1 file changed
+9 -7
@@ -109,14 +109,16 @@ function TtsModelListPage(props: Props) {
setMaybeSelectedTtsModel,
} = props;
const images = [
"mascot/halloween_1.webp",
"mascot/halloween_2.webp",
"mascot/halloween_3.webp",
"mascot/kitsune_pose2.webp",
];
const randomImage = useMemo(() => {
const images = [
"mascot/halloween_1.webp",
"mascot/halloween_2.webp",
"mascot/halloween_3.webp",
"mascot/kitsune_pose2.webp",
];
const randomImage = useMemo(() => images[Math.floor(Math.random() * images.length)], []);
return images[Math.floor(Math.random() * images.length)];
}, []);
const [maybeTtsError, setMaybeTtsError] = useState<
GenerateTtsAudioErrorType | undefined