Skip to content

Commit

Permalink
fix: crash LP earning (#2189)
Browse files Browse the repository at this point in the history
* fix crash LP earning

* fix gap header mobile
  • Loading branch information
nguyenhoaidanh authored Aug 24, 2023
1 parent cdaca55 commit 0121fd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const HeaderElement = styled.div`
align-items: center;
gap: 8px;
${({ theme }) => theme.mediaWidth.upToSmall`
${({ theme }) => theme.mediaWidth.upToXXSmall`
align-items: center;
width: 100%;
justify-content: space-between;
Expand Down Expand Up @@ -180,7 +180,7 @@ export default function Header() {
const [holidayMode] = useHolidayMode()
const theme = useTheme()
const { mixpanelHandler } = useMixpanel()
const upToExtraSmall = useMedia(`(max-width: ${MEDIA_WIDTHS.upToExtraSmall}px)`)
const upToXXSmall = useMedia(`(max-width: ${MEDIA_WIDTHS.upToXXSmall}px)`)
const menu = (
<HeaderElementWrap>
<Announcement />
Expand Down Expand Up @@ -228,7 +228,7 @@ export default function Header() {
</HeaderLinks>
</HeaderRow>
<HeaderControls>
{upToExtraSmall ? (
{upToXXSmall ? (
<HeaderElement>
<SelectNetwork />
<SelectWallet />
Expand Down
4 changes: 2 additions & 2 deletions src/pages/MyEarnings/EarningsBreakdownPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ const EarningsBreakdownPanel: React.FC<Props> = ({ isLoading, data, className, h
...item,
logoUrl:
item.chainId && item.address && !item.logoUrl
? tokens[item.chainId]?.[item.address].logoURI
? tokens[item.chainId]?.[item.address]?.logoURI
: item.logoUrl,
symbol:
item.chainId && item.address && !item.symbol
? tokens[item.chainId]?.[item.address].symbol || ''
? tokens[item.chainId]?.[item.address]?.symbol || ''
: item.symbol,
}))}
totalValue={formatUSDValue(data.totalValue, true)}
Expand Down

0 comments on commit 0121fd2

Please sign in to comment.