Procházet zdrojové kódy

Fix issue where custom thousands separator was being over written

Josh Hanley před 2 roky
rodič
revize
d0b91cb5af
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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 = ''