@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: decimalPart ? decimalPart.length : 0,
330
- maximumFractionDigits: decimalPart ? decimalPart.length : 20
328
+ minimumFractionDigits: 2,
329
+ maximumFractionDigits: 2
331
330
  });
332
- return `£${formatted}.00`;
331
+ return `£${formatted}`;
333
332
  };
334
333
  displayOldValue = formatPoundValue(displayOldValue);
335
334
  displayNewValue = formatPoundValue(displayNewValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.150",
3
+ "version": "0.0.151",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",