)
}
diff --git a/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx b/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx
index b1e8f197..c3e4f09d 100644
--- a/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx
+++ b/trivia-forge/frontend/src/Pages/TriviaGenPage.jsx
@@ -53,7 +53,9 @@ function TriviaGenPage() {
//parse response from API
let sections = completion.choices[0].message.content.split('\n'); // store trivia questions
-
+ for (let i = 0; i < sections.length; i++) {
+ if (sections[i] === '') { sections.splice(i, 1); }
+ }
//loop through sections and create question and choice objects
for (let i = 0; i < sections.length; i += 7) {
let question = sections[i];
diff --git a/trivia-forge/frontend/src/Pages/TriviaReviewPage.jsx b/trivia-forge/frontend/src/Pages/TriviaReviewPage.jsx
index 37d6aab5..dfd7607f 100644
--- a/trivia-forge/frontend/src/Pages/TriviaReviewPage.jsx
+++ b/trivia-forge/frontend/src/Pages/TriviaReviewPage.jsx
@@ -1,6 +1,7 @@
import React from 'react';
import { useLocation } from 'react-router-dom'; // used to access passed state
import Questions from '../Components/Questions';
+import { Button } from 'react-bootstrap';
function TriviaReviewPage() {
// Reference: https://reactrouter.com/en/main/hooks/use-location
@@ -17,6 +18,8 @@ function TriviaReviewPage() {
))}
+
);
}