Skip to content

Commit

Permalink
fix(app): new assets on landing page (#2704)
Browse files Browse the repository at this point in the history
Fixed the assets icon on landing page
  • Loading branch information
LeifuChen authored Jul 28, 2023
1 parent ba061b2 commit da815db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/app/src/sections/homepage/Assets.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { SECONDS_PER_DAY } from '@kwenta/sdk/constants'
import { MarketKeyByAsset } from '@kwenta/sdk/utils'
import { wei } from '@synthetixio/wei'
import { ColorType, createChart, UTCTimestamp } from 'lightweight-charts'
import router from 'next/router'
Expand Down Expand Up @@ -149,9 +150,7 @@ const Assets = () => {
? marketPrice.sub(pastPrice.rate).div(marketPrice)
: 0,
image: <PriceChart asset={market.asset} />,
icon: (
<StyledCurrencyIcon currencyKey={(market.asset[0] !== 's' ? 's' : '') + market.asset} />
),
icon: <StyledCurrencyIcon currencyKey={MarketKeyByAsset[market.asset]} />,
}
})
}, [futuresMarkets, pastRates, futuresVolumes, t, prices])
Expand Down

0 comments on commit da815db

Please sign in to comment.