mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
🐛Fix hint intro overview duplicates
This commit is contained in:
parent
86fc4a3846
commit
6739353d8e
1 changed files with 3 additions and 3 deletions
|
@ -10,8 +10,8 @@ module.exports = class HintsState extends Backbone.Model
|
|||
|
||||
update: ->
|
||||
hints = switch me.getHintsGroup()
|
||||
when 'hints' then @level.get('documentation')?.hints or []
|
||||
when 'hintsB' then @level.get('documentation')?.hintsB or []
|
||||
when 'hints' then _.cloneDeep(@level.get('documentation')?.hints or [])
|
||||
when 'hintsB' then _.cloneDeep(@level.get('documentation')?.hintsB or [])
|
||||
else []
|
||||
haveIntro = false
|
||||
haveOverview = false
|
||||
|
@ -25,6 +25,6 @@ module.exports = class HintsState extends Backbone.Model
|
|||
break if haveIntro and haveOverview
|
||||
total = _.size(hints)
|
||||
@set({
|
||||
hints: hints
|
||||
hints
|
||||
total
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue