Skip to content

Commit

Permalink
show LearningWorldCompletion Modal in LearningSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaio3D committed Feb 10, 2025
1 parent 2333229 commit dad78ed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ISetWorldCompletionModalToShownUseCase from "src/Components/Core/Applicat
import CoreDIContainer from "~DependencyInjection/CoreDIContainer";
import USECASE_TYPES from "~DependencyInjection/UseCases/USECASE_TYPES";
import LearningSpaceScoreTO from "src/Components/Core/Application/DataTransferObjects/LearningSpaceScoreTO";
import LearningWorldScoreTO from "src/Components/Core/Application/DataTransferObjects/LearningWorldScoreTO";

export default class LearningWorldCompletionModalPresenter
implements ILearningWorldCompletionModalPresenter
Expand All @@ -26,8 +27,8 @@ export default class LearningWorldCompletionModalPresenter
}
}

onLearningSpaceScored(learningSpaceScoreTO: LearningSpaceScoreTO): void {
onLearningWorldScored(learningWorldScoreTO: LearningWorldScoreTO): void {
this.viewModel.showModal.Value =
learningSpaceScoreTO.currentScore >= learningSpaceScoreTO.requiredScore;
learningWorldScoreTO.currentScore >= learningWorldScoreTO.requiredScore;
}
}

0 comments on commit dad78ed

Please sign in to comment.