Fix format conversion utility module syntax

This commit is contained in:
Ben
2026-05-14 17:32:29 -07:00
parent cf2b3d2e5d
commit 2273dfa0f5
@@ -1,4 +1,4 @@
function formatConversionValue(value: number | null | undefined): string {
export function formatConversionValue(value) {
if (value === null || value === undefined || Number.isNaN(value)) {
return '—';
}
@@ -21,4 +21,3 @@ function formatConversionValue(value: number | null | undefined): string {
const scientific = value.toExponential();
return scientific.replace(/\.?0+e/, 'e');
}
module.exports = { formatConversionValue };