fix: amount in profile

This commit is contained in:
caturbgs
2021-12-22 21:21:17 +07:00
parent 6c5891d407
commit b1d35e2df6
2 changed files with 7 additions and 2 deletions

View File

@@ -122,7 +122,13 @@ export const Profile = observer(() => {
<Title strong level={3} style={styleSaldoTitle}>Saldo</Title>
</Col>
<Col lg={24} xs={12}>
<Text style={styleSaldoContent}>{store.authentication.profileData?.wallet}</Text>
<Text style={styleSaldoContent}>{
new Intl.NumberFormat("id-ID", {
style: "currency",
currency: "IDR"
})
.format(store.authentication.profileData?.wallet || 0)}
</Text>
</Col>
</Row>
</Col>