Fixes misuse of food.key in modal display and instead uses the text value
This commit is contained in:
@@ -99,7 +99,7 @@ habitrpg.controller("InventoryCtrl", ['$rootScope', '$scope', '$window', 'User',
|
||||
var food = $scope.selectedFood
|
||||
if (food.key == 'Saddle') {
|
||||
if (!$window.confirm('Saddle ' + pet + '?')) return;
|
||||
} else if (!$window.confirm('Feed ' + pet + ' a ' + food.key + '?')) {
|
||||
} else if (!$window.confirm('Feed ' + pet + ' a ' + food.text + '?')) {
|
||||
return;
|
||||
}
|
||||
User.user.ops.feed({params:{pet: pet, food: food.key}});
|
||||
|
||||
Reference in New Issue
Block a user