Merge branch 'develop' into feature/updated-user-type-dashboard
This commit is contained in:
@@ -24,8 +24,6 @@ export default function FillBlanksSolutions({id, type, prompt, solutions, text,
|
|||||||
const userSolution = userSolutions.find((x) => x.id === id);
|
const userSolution = userSolutions.find((x) => x.id === id);
|
||||||
const solution = solutions.find((x) => x.id === id)!;
|
const solution = solutions.find((x) => x.id === id)!;
|
||||||
|
|
||||||
console.log(id, match);
|
|
||||||
|
|
||||||
if (!userSolution) {
|
if (!userSolution) {
|
||||||
return (
|
return (
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ export default function Speaking({id, type, title, video_url, text, prompts, use
|
|||||||
const [solutionURL, setSolutionURL] = useState<string>();
|
const [solutionURL, setSolutionURL] = useState<string>();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(userSolutions);
|
|
||||||
|
|
||||||
if (userSolutions && userSolutions.length > 0) {
|
if (userSolutions && userSolutions.length > 0) {
|
||||||
axios.post(`/api/speaking`, {path: userSolutions[0].solution}, {responseType: "arraybuffer"}).then(({data}) => {
|
axios.post(`/api/speaking`, {path: userSolutions[0].solution}, {responseType: "arraybuffer"}).then(({data}) => {
|
||||||
const blob = new Blob([data], {type: "audio/wav"});
|
const blob = new Blob([data], {type: "audio/wav"});
|
||||||
|
|||||||
@@ -46,9 +46,6 @@ export default function ExamPage({page}: Props) {
|
|||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
useEffect(() => setSessionId(uuidv4()), []);
|
useEffect(() => setSessionId(uuidv4()), []);
|
||||||
useEffect(() => {
|
|
||||||
console.log({userSolutions});
|
|
||||||
}, [userSolutions]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
selectedModules.length > 0 && timeSpent === 0 && !showSolutions;
|
selectedModules.length > 0 && timeSpent === 0 && !showSolutions;
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ export function getServerSideProps({query, res}: {query: {oobCode: string; mode:
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(query.continueUrl);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
code: query.oobCode,
|
code: query.oobCode,
|
||||||
|
|||||||
Reference in New Issue
Block a user