Răsfoiți Sursa

Fix issue where custom thousands separator was being over written

Josh Hanley 2 ani în urmă
părinte
comite
d0b91cb5af
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 = ''