green line
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user