diff --git a/src/formaters.ts b/src/formaters.ts index a554629..13b28e4 100644 --- a/src/formaters.ts +++ b/src/formaters.ts @@ -1,10 +1,12 @@ const iskFormater = new Intl.NumberFormat("is-IS", { minimumFractionDigits: 2, + maximumFractionDigits: 2 }); export const formatIsk = (value: number | bigint) => iskFormater.format(value) + " ISK"; export const percentFormater = new Intl.NumberFormat("en-US", { style: "percent", - minimumFractionDigits: 0 + minimumFractionDigits: 0, + maximumFractionDigits: 0 }); diff --git a/src/pages/Reprocess.vue b/src/pages/Reprocess.vue index d9cecef..75a7fc5 100644 --- a/src/pages/Reprocess.vue +++ b/src/pages/Reprocess.vue @@ -4,12 +4,12 @@ import { useStorage } from '@vueuse/core'; import { ref } from 'vue'; const items = ref(""); -const minerals = ref(""); +const materials = ref(""); const efficiency = useStorage('reprocess-efficiency', 0.55); const result = ref([]); -const send = async () => result.value = await reprocess(items.value, minerals.value, efficiency.value); +const send = async () => result.value = await reprocess(items.value, materials.value, efficiency.value); @@ -22,7 +22,7 @@ const send = async () => result.value = await reprocess(items.value, minerals.va
- +