Skip to content

Commit

Permalink
Merge pull request #1101 from oraidex/fix/crash-pool
Browse files Browse the repository at this point in the history
fix crash pool
  • Loading branch information
haunv3 authored Dec 28, 2024
2 parents 6c4621e + 1bd45fb commit ed556f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/Pool-V3/components/PositionItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,11 @@ const PositionItem = ({ position }) => {
<div className={classNames(styles.itemAsset, styles[theme])}>
<span className={classNames(styles.token, styles[theme])}></span>
<span className={classNames(styles.token, styles[theme])}>
{theme === 'light' ? <token.IconLight /> : <token.Icon />}
{theme === 'light' ? (
<img src={token.iconLight} alt="tokenIncentive" width={20} height={20} />
) : (
<img src={token.icon} alt="tokenIncentive" width={20} height={20} />
)}
{!amount || !Number(amount)
? '--'
: toDisplay(amount.toString(), token.decimals || CW20_DECIMALS)}{' '}
Expand Down

0 comments on commit ed556f4

Please sign in to comment.