mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
halloween: fix to transient skin set
This commit is contained in:
parent
f59d5b056c
commit
c40697761b
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ angular.module('userServices', []).
|
|||
if (window.habitrpgShared.helpers.dotGet('purchased.' + path, user)) {
|
||||
var pref = path.split('.')[0],
|
||||
val = path.split('.')[1];
|
||||
return window.habitrpgShared.helpers.dotSet('preferences.' + pref, val, user);
|
||||
return self.set('preferences.' + pref, val);
|
||||
} else {
|
||||
if (confirm("Purchase for 2 Gems?") !== true) return;
|
||||
if (user.balance < 0.5) return $rootScope.modals.buyGems = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue