diff --git a/src/components/Assesment/Assesment.jsx b/src/components/Assesment/Assesment.jsx index 6790eddf..6073a3d6 100644 --- a/src/components/Assesment/Assesment.jsx +++ b/src/components/Assesment/Assesment.jsx @@ -499,7 +499,7 @@ export const ProfileHeader = ({ const handleLogout = () => { localStorage.clear(); end({}); - navigate("/Login"); + navigate("/login"); }; const CustomIconButton = styled(IconButton)({ diff --git a/src/routes/index.js b/src/routes/index.js index d48514ca..3e491284 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -3,6 +3,12 @@ import * as reviews from "../views"; const routData = [ + { + id: "route-001", + path: "/", + component: reviews.DiscoverStart, + requiresAuth: true, + }, { id: "route-002", path: "/discover", @@ -40,7 +46,6 @@ const routData = [ component: reviews.AssesmentEnd, requiresAuth: true, }, - { id: "route-008", path: "/level-page", @@ -53,6 +58,12 @@ const routData = [ component: reviews.PracticeRedirectPage, requiresAuth: true, }, + { + id: "route-010", + path: "/login", + component: reviews.LoginPage, + requiresAuth: false, + }, ]; // add login route for test rig @@ -61,12 +72,6 @@ const isLogin = process.env.REACT_APP_IS_IN_APP_AUTHORISATION === "true"; if (isLogin && !virtualId) { routData.push( - { - id: "route-001", - path: "/", - component: reviews.LoginPage, - requiresAuth: true, - }, { id: "route-000", path: "*", @@ -76,12 +81,6 @@ if (isLogin && !virtualId) { ); } else { routData.push( - { - id: "route-001", - path: "/", - component: reviews.DiscoverStart, - requiresAuth: false, - }, { id: "route-000", path: "*", diff --git a/src/utils/VoiceAnalyser.js b/src/utils/VoiceAnalyser.js index a0ec7b69..9a43d5f5 100644 --- a/src/utils/VoiceAnalyser.js +++ b/src/utils/VoiceAnalyser.js @@ -112,6 +112,7 @@ function VoiceAnalyser(props) { if (callUpdateLearner) { try { let nonDenoisedRes = await getResponseText(nondenoisedBlob); + nonDenoisedRes = await filterBadWords(nonDenoisedRes); setNonDenoisedText(nonDenoisedRes); console.log("non denoised output -- ", nonDenoisedRes); console.log(fuzz.ratio(props.originalText, nonDenoisedRes)); @@ -147,6 +148,7 @@ function VoiceAnalyser(props) { if (callUpdateLearner) { try { let denoisedRes = await getResponseText(denoisedBlob); + denoisedRes = await filterBadWords(denoisedRes); setDenoisedText(denoisedRes); console.log("denoised output -- ", denoisedRes); console.log(fuzz.ratio(props.originalText, denoisedRes)); diff --git a/src/utils/constants.js b/src/utils/constants.js index bffd145c..dea6607d 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -3523,6 +3523,7 @@ const AllLanguages = [ { name: "हिंदी", lang: "hi", symbol: "क", offline: false }, { name: "ಕನ್ನಡ", lang: "kn", symbol: "ಕ", offline: false }, { name: "తెలుగు", lang: "te", symbol: "ఈ", offline: false }, + { name: "ગુજરાતી", lang: "gu", symbol: "ગુ" } , ]; const appLanguages = process.env.REACT_APP_LANGUAGES diff --git a/src/views/AppContent/AppContent.jsx b/src/views/AppContent/AppContent.jsx index e944ee4b..2bbb7440 100644 --- a/src/views/AppContent/AppContent.jsx +++ b/src/views/AppContent/AppContent.jsx @@ -7,15 +7,13 @@ const PrivateRoute = (props) => { const navigate = useNavigate(); useEffect(() => { if (!virtualId && props.requiresAuth) { - navigate("/"); + navigate("/login"); } }, [virtualId]); return <>{props.children}; }; const AppContent = ({ routes }) => { - // const navigate = useNavigate(); - // const location = useLocation(); return (