diff --git a/public/js/src_modules/fetchedDataProcessing.mjs b/public/js/src_modules/fetchedDataProcessing.mjs index b0d4d18cbec6d09013aa2ddf281bfafe177db535..f939e8a6a8751be0763d3324205b98caa35ecc0e 100644 --- a/public/js/src_modules/fetchedDataProcessing.mjs +++ b/public/js/src_modules/fetchedDataProcessing.mjs @@ -8,16 +8,13 @@ const matchUnitOfMeasurementSymbolStringToSymbol = function ( unitOfMeasurementSymbolString ) { - const unicodeCodePointDegreeSymbol = "\u00B0"; - const unicodeCodePointSuperscriptThree = "\u00B3"; - // Symbol - temperature if (unitOfMeasurementSymbolString === "degC") { - return `${unicodeCodePointDegreeSymbol}C`; + return "\u00B0C"; } // Symbol - flow rate else if (unitOfMeasurementSymbolString === "m3/h") { - return `m${unicodeCodePointSuperscriptThree}/h`; + return "m\u00B3/h"; } // If no symbol exists else {