mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Reorder helper keys
This commit is contained in:
@@ -61,12 +61,12 @@ export function setFoodDefaults(food, options={}) {
|
|||||||
let formattedName = formatForTranslator(name);
|
let formattedName = formatForTranslator(name);
|
||||||
|
|
||||||
defaults(item, {
|
defaults(item, {
|
||||||
|
key: name,
|
||||||
|
text: translator(`food${formattedName}`),
|
||||||
|
notes: translator('foodNotes'),
|
||||||
|
value: 1,
|
||||||
canBuy: options.canBuy || false,
|
canBuy: options.canBuy || false,
|
||||||
canDrop: options.canDrop || false,
|
canDrop: options.canDrop || false,
|
||||||
text: translator(`food${formattedName}`),
|
|
||||||
value: 1,
|
|
||||||
key: name,
|
|
||||||
notes: translator('foodNotes'),
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user