Skip to content
Snippets Groups Projects
Commit d64099a6 authored by vildemv's avatar vildemv
Browse files

Fixed some bugs and removed unused code

parent fd458623
Branches
No related tags found
2 merge requests!9Mainly changes for the history view,!8Updates to the history view
...@@ -81,11 +81,6 @@ watch(questions, (newQuestions) => { ...@@ -81,11 +81,6 @@ watch(questions, (newQuestions) => {
console.log('All questions:', newQuestions) console.log('All questions:', newQuestions)
}) })
const logInfo = () =>{
console.log(questions.value)
console.log(numberOfQuestions.value)
}
const saveQuizToBackend = async () => { const saveQuizToBackend = async () => {
try { try {
const token = tokenStore.jwtToken; const token = tokenStore.jwtToken;
...@@ -118,7 +113,7 @@ const saveQuizToBackend = async () => { ...@@ -118,7 +113,7 @@ const saveQuizToBackend = async () => {
}; };
await postNewTrivio(token, trivioData); await postNewTrivio(token, trivioData);
console.log('Quiz saved successfully!'); console.log('Quiz saved successfully!');
await router.push("/homepage/mytrivios") await router.push("/homepage/trivios")
} }
} catch (error) { } catch (error) {
console.error('Error saving quiz:', error); console.error('Error saving quiz:', error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment