apply ingredient amount to multiplier

This commit is contained in:
Alexander Bocken 2024-02-21 13:26:27 +01:00
parent 8b5e089792
commit 0bfbb6da10
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -227,7 +227,7 @@ span
{/if}
<div class=ingredients_grid>
{#each list.list as item}
<div class=amount>{@html adjust_amount(item.amount, multiplier)} {item.unit}</div><div class=name>{@html item.name.replace("{{multiplier}}", multiplier)}</div>
<div class=amount>{@html adjust_amount(item.amount, multiplier)} {item.unit}</div><div class=name>{@html item.name.replace("{{multiplier}}", multiplier * item.amount)}</div>
{/each}
</div>
{/each}