From d9f67e403da86fae8534578e66d5a867b7ea73bb Mon Sep 17 00:00:00 2001 From: Nidhi Kumari Date: Wed, 3 May 2023 22:21:12 +0530 Subject: [PATCH] UX Multichain: Fixed NaN USD issue under Eth when using Fiat (#18981) * updated fiat value * updated primary value in storybook --- .../__snapshots__/multichain-token-list-item.test.js.snap | 1 - .../multichain-token-list-item/multichain-token-list-item.js | 2 +- .../multichain-token-list-item.stories.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/components/multichain/multichain-token-list-item/__snapshots__/multichain-token-list-item.test.js.snap b/ui/components/multichain/multichain-token-list-item/__snapshots__/multichain-token-list-item.test.js.snap index fba0eabf9..009b453d2 100644 --- a/ui/components/multichain/multichain-token-list-item/__snapshots__/multichain-token-list-item.test.js.snap +++ b/ui/components/multichain/multichain-token-list-item/__snapshots__/multichain-token-list-item.test.js.snap @@ -56,7 +56,6 @@ exports[`MultichainTokenListItem should render correctly 1`] = `

- NaN

diff --git a/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.js b/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.js index 8f502c0da..e122ea4e9 100644 --- a/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.js +++ b/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.js @@ -139,7 +139,7 @@ export const MultichainTokenListItem = ({ - {Number(primary).toFixed(3)} {tokenSymbol}{' '} + {primary} {tokenSymbol}{' '} diff --git a/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.stories.js b/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.stories.js index 161ac7fec..4643d0fce 100644 --- a/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.stories.js +++ b/ui/components/multichain/multichain-token-list-item/multichain-token-list-item.stories.js @@ -29,7 +29,7 @@ export default { }, args: { secondary: '$9.80 USD', - primary: '88.00687889', + primary: '88.0068', tokenImage: './images/eth_logo.png', tokenSymbol: 'ETH', title: 'Ethereum',