mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix: Armoire sends back data from server rather than relying on client
closes #5376
This commit is contained in:
@@ -259,6 +259,11 @@ habitrpg.controller("TasksCtrl", ['$scope', '$rootScope', '$location', 'User','N
|
||||
User.buy({params:{key:item.key}});
|
||||
};
|
||||
|
||||
$scope.buyArmoire = function () {
|
||||
playRewardSound($scope.armoire);
|
||||
User.buyArmoire();
|
||||
}
|
||||
|
||||
/*
|
||||
------------------------
|
||||
Hiding Tasks
|
||||
|
||||
Reference in New Issue
Block a user