Skip to content

Commit

Permalink
Show gradual progress until the preview screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
nfmohit committed Dec 1, 2022
1 parent c2c618b commit 8d1f96c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/components/user-input/UserInputQuestionnaire.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ export default function UserInputQuestionnaire() {
height={ 0 }
indeterminate={ false }
progress={
( activeSlugIndex + 1 ) / USER_INPUT_QUESTIONS_LIST.length
( activeSlugIndex + 1 ) /
( USER_INPUT_QUESTIONS_LIST.length + 1 ) // +1 here to account for the UserInputPreview screen.
}
className="googlesitekit-user-input__question--progress"
/>
Expand Down

0 comments on commit 8d1f96c

Please sign in to comment.