瀏覽代碼

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 = ''