mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 03:30:25 +00:00
Fixes misuse of food.key in modal display and instead uses the text value
This commit is contained in:
parent
29b1320f4a
commit
7e791158d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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}});
|
||||
|
|
|
|||
Loading…
Reference in a new issue