-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(skills): fixed choice skill repeat
- Loading branch information
1 parent
61d906e
commit ffc7ccd
Showing
5 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
'use strict' | ||
const _ = require('lodash') | ||
|
||
/** | ||
* @hidden true | ||
*/ | ||
const invalidAnswer = async () => { | ||
const key = 'skill-choice-invalid-count' | ||
const value = (temp[key] || 0) + 1 | ||
|
||
temp[key] = value | ||
} | ||
|
||
return invalidAnswer() | ||
const key = 'skill-choice-invalid-count' | ||
const value = (temp[key] || 0) + 1 | ||
temp[key] = value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters