mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
halloween fix to 401 error
This commit is contained in:
@@ -180,7 +180,7 @@ angular.module('userServices', []).
|
||||
if (window.habitrpgShared.helpers.dotGet('purchased.' + path, user)) {
|
||||
var pref = path.split('.')[0],
|
||||
val = path.split('.')[1];
|
||||
window.habitrpgShared.helpers.dotSet('preferences.' + pref, val, user);
|
||||
return window.habitrpgShared.helpers.dotSet('preferences.' + pref, val, user);
|
||||
} else {
|
||||
if (confirm("Purchase for 2 Gems?") !== true) return;
|
||||
if (user.balance < 0.5) return $rootScope.modals.buyGems = true;
|
||||
|
||||
Reference in New Issue
Block a user