From 99c37494f72881de0975085b11196f6264266f14 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Sun, 20 Nov 2022 19:42:55 +0700 Subject: [PATCH] don't display comma on currency --- src/const/CustomFunc.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/const/CustomFunc.js b/src/const/CustomFunc.js index 6ce81f4..0fec461 100644 --- a/src/const/CustomFunc.js +++ b/src/const/CustomFunc.js @@ -256,6 +256,7 @@ export const formatRupiah = (angka, prefix) => { } export const renderFormatRupiah = (text, prefix) => { + text = text.split('.')[0]; if (text) { return formatRupiah(text, prefix) } else {