@dynamatix/cat-shared 0.0.150 → 0.0.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -324,12 +324,11 @@ function applyAuditMiddleware(schema, collectionName) {
|
|
|
324
324
|
const numericString = valueSansSymbol.replace(/,/g, '');
|
|
325
325
|
const numericValue = Number(numericString);
|
|
326
326
|
if (!Number.isFinite(numericValue)) return `£${valueSansSymbol}`;
|
|
327
|
-
const decimalPart = numericString.split('.')[1];
|
|
328
327
|
const formatted = numericValue.toLocaleString('en-GB', {
|
|
329
|
-
minimumFractionDigits:
|
|
330
|
-
maximumFractionDigits:
|
|
328
|
+
minimumFractionDigits: 2,
|
|
329
|
+
maximumFractionDigits: 2
|
|
331
330
|
});
|
|
332
|
-
return `£${formatted}
|
|
331
|
+
return `£${formatted}`;
|
|
333
332
|
};
|
|
334
333
|
displayOldValue = formatPoundValue(displayOldValue);
|
|
335
334
|
displayNewValue = formatPoundValue(displayNewValue);
|