Merge branch 'develop' into bug-fixing-19-MAR

This commit is contained in:
Tiago Ribeiro
2024-03-22 11:15:30 +00:00
6 changed files with 3 additions and 12 deletions

View File

@@ -103,7 +103,6 @@ export default function InteractiveSpeaking({
useEffect(() => { useEffect(() => {
if (userSolutions.length > 0 && answers.length === 0) { if (userSolutions.length > 0 && answers.length === 0) {
console.log(userSolutions);
const solutions = userSolutions as unknown as typeof answers; const solutions = userSolutions as unknown as typeof answers;
setAnswers(solutions); setAnswers(solutions);
@@ -112,10 +111,6 @@ export default function InteractiveSpeaking({
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [userSolutions, mediaBlob, answers]); }, [userSolutions, mediaBlob, answers]);
useEffect(() => {
console.log({answers});
}, [answers]);
useEffect(() => { useEffect(() => {
if (updateIndex) updateIndex(questionIndex); if (updateIndex) updateIndex(questionIndex);
}, [questionIndex, updateIndex]); }, [questionIndex, updateIndex]);

View File

@@ -79,8 +79,6 @@ export default function Sidebar({path, navDisabled = false, focusMode = false, u
const {totalAssignedTickets} = useTicketsListener(userId); const {totalAssignedTickets} = useTicketsListener(userId);
useEffect(() => console.log(totalAssignedTickets), [totalAssignedTickets]);
const logout = async () => { const logout = async () => {
axios.post("/api/logout").finally(() => { axios.post("/api/logout").finally(() => {
setTimeout(() => router.reload(), 500); setTimeout(() => router.reload(), 500);

View File

@@ -11,7 +11,7 @@ export const RadialResult = ({module, score, total, png}: ModuleScore) => (
<Image src={png} style={styles.image64}></Image> <Image src={png} style={styles.image64}></Image>
<View style={[styles.textColor, styles.radialResultContainer]}> <View style={[styles.textColor, styles.radialResultContainer]}>
<Text style={styles.textBold}>{Math.floor(score)}</Text> <Text style={styles.textBold}>{Math.floor(score)}</Text>
<Text style={{fontSize: 8}}>out of {total}</Text> <Text style={{fontSize: 8}}>out of 9.0</Text>
</View> </View>
</View> </View>
); );

View File

@@ -79,8 +79,6 @@ const PartTab = ({
.finally(() => setIsLoading(false)); .finally(() => setIsLoading(false));
}; };
useEffect(() => console.log(part), [part]);
return ( return (
<Tab.Panel className="w-full bg-ielts-speaking/20 min-h-[600px] h-full rounded-xl p-6 flex flex-col gap-4"> <Tab.Panel className="w-full bg-ielts-speaking/20 min-h-[600px] h-full rounded-xl p-6 flex flex-col gap-4">
<div className="flex flex-col gap-3 w-full"> <div className="flex flex-col gap-3 w-full">

View File

@@ -53,7 +53,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
{ {
solutions, solutions,
score: { score: {
correct: speakingReverseMarking[backendRequest.data.overall], correct: speakingReverseMarking[backendRequest.data.overall || 0] || 0,
missing: 0, missing: 0,
total: 100, total: 100,
}, },

View File

@@ -48,7 +48,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
{ {
solutions, solutions,
score: { score: {
correct: speakingReverseMarking[backendRequest.data.overall], correct: speakingReverseMarking[backendRequest.data.overall || 0] || 0,
total: 100, total: 100,
missing: 0, missing: 0,
}, },