From 11cc6ba622dc82bb1cf9c398d3893891f285411e Mon Sep 17 00:00:00 2001 From: mantikoros Date: Tue, 14 Dec 2021 11:35:11 -0600 Subject: [PATCH] format user balance --- web/pages/account.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pages/account.tsx b/web/pages/account.tsx index f946fcec..5ec011f0 100644 --- a/web/pages/account.tsx +++ b/web/pages/account.tsx @@ -4,6 +4,7 @@ import { useUser } from '../hooks/use-user' import { ContractsList } from '../components/contracts-list' import { Title } from '../components/title' import { Row } from '../components/layout/row' +import { formatMoney } from '../lib/util/format' function UserCard(props: { user: User }) { const { user } = props @@ -22,7 +23,7 @@ function UserCard(props: { user: User }) {

{user?.name}

{user?.email}

-

M$ {user?.balance}

+

{formatMoney(user?.balance)}