From 7160c028198b9fc3cd7f84b3d6b7289899be02f5 Mon Sep 17 00:00:00 2001 From: tiendn Date: Mon, 10 Apr 2023 13:23:28 +0700 Subject: [PATCH] fix: update display currency of AccountAssets --- .../components/account/AccountAssets.tsx | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/views/accounts/components/account/AccountAssets.tsx b/views/accounts/components/account/AccountAssets.tsx index 29ee1b95..39461d22 100644 --- a/views/accounts/components/account/AccountAssets.tsx +++ b/views/accounts/components/account/AccountAssets.tsx @@ -81,10 +81,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
- } + currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()} + // currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[0] || '0', 'VND')})`} + // icon={ + // + // } value={dataSet[0]} fixNumber={5} /> @@ -95,10 +96,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
- } + currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()} + // currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[1] || '0', 'VND')})`} + // icon={ + // + // } value={dataSet[1]} fixNumber={5} /> @@ -109,10 +111,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
- } + currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()} + // currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[2] || '0', 'VND')})`} + // icon={ + // + // } value={dataSet[2]} fixNumber={5} /> @@ -123,10 +126,11 @@ const AccountAssets = ({ addressData, address }: Props) => {
- } + currency={process.env.NEXT_PUBLIC_NATIVE_TOKEN?.toUpperCase()} + // currency={`(${formatCurrencyValue(Number(astraPrice) * dataSet[3] || '0', 'VND')})`} + // icon={ + // + // } value={dataSet[3]} fixNumber={5} />