change loading timer to 2 seconds

This commit is contained in:
BFlat authored and Brandon Thomas committed 2023-01-18 04:54:20 -05:00
1 parent 877a641ae1
commit c4c876e01f
1 file changed
+2 -2
@@ -139,13 +139,13 @@ function TtsModelListPage(props: Props) {
setLoading(true);
setTimeout(() => {
setLoading(false);
}, 1000);
}, 2000);
};
useEffect(() => {
const timeout = setTimeout(() => {
setLoading(false);
}, 1000);
}, 2000);
return () => clearTimeout(timeout);
}, []);