diff --git a/src/formaters.ts b/src/formaters.ts index 3778dfb..0fd71ce 100644 --- a/src/formaters.ts +++ b/src/formaters.ts @@ -1,9 +1,9 @@ -export const iskFormater = new Intl.NumberFormat("is-IS", { - style: "currency", - currency: "ISK", +const iskFormater = new Intl.NumberFormat("is-IS", { minimumFractionDigits: 2, }); +export const formatIsk = (value: number | bigint) => iskFormater.format(value) + " ISK"; + export const percentFormater = new Intl.NumberFormat("en-US", { style: "percent", minimumFractionDigits: 0 diff --git a/src/reprocess/ReprocessResultTable.vue b/src/reprocess/ReprocessResultTable.vue index bc54243..0e9d368 100644 --- a/src/reprocess/ReprocessResultTable.vue +++ b/src/reprocess/ReprocessResultTable.vue @@ -1,5 +1,5 @@