mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Put in a fallback in case somehow the gems weren't loaded for the PlayHeroesView locked hero gem costs.
This commit is contained in:
parent
a25d306be7
commit
dffc14f995
1 changed files with 4 additions and 0 deletions
|
@ -75,6 +75,10 @@
|
|||
h2(data-i18n="choose_hero.available_for_purchase") Available for Purchase
|
||||
button.btn.unlock-button#purchase-hero-button
|
||||
span.spr(data-i18n="play.unlock") Unlock
|
||||
- if(!visibleHero.get('gems')) {
|
||||
- console.error('Huh, we loaded the hero with no gem cost.');
|
||||
- visibleHero.set('gems', {ninja: 400, librarian: 400}[visibleHero.get('slug')] || 1000);
|
||||
- }
|
||||
span= visibleHero.get('gems')
|
||||
span.gem.gem-20
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue