diff --git a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/AssessmentGenerator.java b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/AssessmentGenerator.java index 9450a1c..c0b04ea 100644 --- a/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/AssessmentGenerator.java +++ b/src/Welsh Vocabulary Tutor/src/main/java/uk/ac/aber/cs22120/group20/selfassessment/AssessmentGenerator.java @@ -43,8 +43,7 @@ public class AssessmentGenerator { alert.setHeaderText("Not enough words in practice list"); alert.setResizable(false); alert.setContentText("Please add more words to your practice list on the dictionary page before trying to test yourself!"); - Optional result = alert.showAndWait(); - ScreenSwitch.swap(ScreenSwitch.SceneEnum.dictionaryScene); + alert.showAndWait(); }else { for (int numberToGenerate = 0; numberToGenerate < 10; numberToGenerate++) {