Skip to content

Commit

Permalink
fix token details ui shift (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored Dec 5, 2023
1 parent e8f6a2d commit 54b1146
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/entries/popup/pages/home/TokenDetails/PriceChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export function PriceChart({ token }: { token: ParsedUserAsset }) {
/>
<PriceChange changePercentage={changePercentage} date={date} />
</Box>
{hasPriceData && (
<Box>
{shouldHaveData && (
<>
<Box style={{ height: '222px' }} marginHorizontal="-20px">
{data && (
<LineChart
Expand Down Expand Up @@ -222,7 +222,7 @@ export function PriceChart({ token }: { token: ParsedUserAsset }) {
);
})}
</Box>
</Box>
</>
)}
</>
);
Expand Down
2 changes: 1 addition & 1 deletion src/entries/popup/pages/home/TokenDetails/TokenDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ export function TokenDetails() {
/>
}
rightComponent={
!isSwappable ? (
isSwappable ? (
<Inline alignVertical="center" space="7px">
<FavoriteButton token={token} />
<MoreOptions token={token} />
Expand Down

0 comments on commit 54b1146

Please sign in to comment.