- {quantity}×{t(`items.${itemId}`)}
+ {quantity}×{t(`items.${item.key}`)}
{perMinute}
@@ -44,25 +47,30 @@ const renderLabel: SelectRenderLabel = (option) => {
const { t } = useI18n()
const recipe = getRecipeById(option.value as Id)
+ const building = getBuildingById(recipe.producedInId)
return (
- {t(`buildings.${recipe.producedIn}`)}
+ {t(`buildings.${building.key}`)}
{option.label}
- {recipe.inputs.map(({ itemId, quantity, quantityPerMinute }) =>
- renderItem(itemId, quantity, quantityPerMinute),
+ {recipe.inputs.map(({ itemId, quantity }) =>
+ renderItem(
+ itemId,
+ quantity,
+ calculatePerMinute(quantity, recipe.productionDuration),
+ ),
)}
{