Переглянути джерело

Fix issue where custom thousands separator was being over written

Josh Hanley 2 роки тому
батько
коміт
d0b91cb5af
1 змінених файлів з 1 додано та 1 видалено
  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 = ''