green line

This commit is contained in:
2023-07-26 09:31:26 +02:00
parent 1b208b2ff6
commit d5a7fe010f
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ const send = async () => result.value = await reprocess(items.value, minerals.va
</tr>
</thead>
<tbody>
<tr v-for="r in result" :key="r.typeID">
<tr v-for="r in result" :key="r.typeID" :class="{'bg-green-200': r.buy_reprocess >= r.sell}">
<td class="border px-1">{{ r.typeID }}</td>
<td class="border text-right px-1">{{ iskFormat(r.buy) }}</td>
<td class="border text-right px-1">{{ iskFormat(r.buy_reprocess) }}</td>

View File

@@ -1,7 +1,7 @@
const iskFormater = new Intl.NumberFormat("is-IS", {
style: "currency",
currency: "ISK",
minimumFractionDigits: 0,
minimumFractionDigits: 2,
});
export const iskFormat = (value: number): string => iskFormater.format(value);