Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7340962

Browse files
committed
fix getProgress issue
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent79f0fba commit7340962

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎web-app/src/containers/Start/getProgress.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const getProgress = (levels: TT.Level[] = [], position: T.Position): number => {
1414
}
1515
// check if the level is complete
1616
if(position.stepId&&currentLevel.steps&&currentLevel.steps.length){
17-
constlastStepInLevel:TT.Step|null=currentLevel.steps[currentLevel.steps.length]
17+
constlastStepInLevel:TT.Step|null=currentLevel.steps[currentLevel.steps.length-1]
1818
isLevelComplete=position.complete&&lastStepInLevel.id===position.stepId
1919
}else{
2020
isLevelComplete=position.complete

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp