From b1d35e2df66f689e0a8e02ab419a5f9be384e797 Mon Sep 17 00:00:00 2001 From: caturbgs Date: Wed, 22 Dec 2021 21:21:17 +0700 Subject: [PATCH] fix: amount in profile --- src/pages/Payback/PaybackModal.js | 1 - src/pages/Profile/Profile.js | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/Payback/PaybackModal.js b/src/pages/Payback/PaybackModal.js index 34683ec..63bdc77 100644 --- a/src/pages/Payback/PaybackModal.js +++ b/src/pages/Payback/PaybackModal.js @@ -45,7 +45,6 @@ export const PaybackModal = ({initialData}) => { }; const handleChange = (info) => { - console.log(info, "apa isi onchange") if (info.file.status === 'uploading') { setLoading(true); } else { diff --git a/src/pages/Profile/Profile.js b/src/pages/Profile/Profile.js index f6ec408..1e40082 100644 --- a/src/pages/Profile/Profile.js +++ b/src/pages/Profile/Profile.js @@ -122,7 +122,13 @@ export const Profile = observer(() => { Saldo - {store.authentication.profileData?.wallet} + { + new Intl.NumberFormat("id-ID", { + style: "currency", + currency: "IDR" + }) + .format(store.authentication.profileData?.wallet || 0)} +