fix(ts): refactor codebase for capacitor setup

This commit is contained in:
shafin-r
2025-07-28 20:22:04 +06:00
parent e091a78bdb
commit 0bca09f8ef
31 changed files with 458 additions and 384 deletions

View File

@ -86,7 +86,7 @@ export const ExamProvider: React.FC<{ children: ReactNode }> = ({
setCurrentAttemptState(null);
};
const startExam = (exam?: Exam) => {
const startExam = (exam?: Exam): void => {
const examToUse = exam || currentExam;
if (!examToUse) {
@ -101,6 +101,7 @@ export const ExamProvider: React.FC<{ children: ReactNode }> = ({
answers: [],
startTime: new Date(),
totalQuestions: 0,
score: 0,
};
setCurrentAttemptState(attempt);