habitica-self-host/website
Bart Enkelaar dc9800d88a
Don't bill (subtract gems) multiple times for multiple unlock item set calls (#12116)
* Issue 11050 - Small tuneups to unlock.js

- Use includes i.o. indexOf
- Extract small function for object setting duplication
- Use every instead of custom counter

* Issue 11050 - Properly store purchased items when purchasing them

* Issue 11050 - Couple more tuneups in unlock.js and implemented partial failure scenario

* Issue 11050 - Fix last lint issue

* Issue 11050 - Check path for gear i.o. failing to write it to purchased

* Issue 11050 - Guarantee variation coverage in tests

* Issue 11050 - Use startsWith instead of includes for background check

* Issue 11050 - Don't unlock lost items
2020-04-24 16:16:34 +02:00
..
client Don't bill (subtract gems) multiple times for multiple unlock item set calls (#12116) 2020-04-24 16:16:34 +02:00
common Don't bill (subtract gems) multiple times for multiple unlock item set calls (#12116) 2020-04-24 16:16:34 +02:00
raw_sprites chore(news): Bailey 2020-04-23 13:59:48 -05:00
server fix #12118: pass mandatory second parameter to markdown-it parse method 2020-04-24 12:06:05 +02:00