Explorar el Código

Fix issue where custom thousands separator was being over written

Josh Hanley hace 2 años
padre
commit
d0b91cb5af
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/mask/src/index.js

+ 1 - 1
packages/mask/src/index.js

@@ -164,7 +164,7 @@ export function buildUp(template, input) {
 }
 
 export function formatMoney(input, delimiter = '.', thousands) {
-    thousands = thousands ?? delimiter === "," ? "." : ","
+    thousands = thousands ?? (delimiter === "," ? "." : ",")
 
     let addThousands = (input, thousands) => {
         let output = ''