Skip to content

Commit

Permalink
Refactor SwapCard component to conditionally render description text …
Browse files Browse the repository at this point in the history
…and improve token upgrade/downgrade logic
  • Loading branch information
marcinciarka committed Sep 18, 2024
1 parent 98f0242 commit ea74ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/sky/components/SwapCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export const SwapCardWrapper = ({
? isTokenSwapped
? `Unstake ${viewPrimaryToken}`
: `Stake ${viewPrimaryToken}`
: `Upgrade ${viewPrimaryToken} to ${resolvedSecondaryTokenData.token}`}
: `${isTokenSwapped ? 'Downgrade' : 'Upgrade'} ${viewPrimaryToken} to ${resolvedSecondaryTokenData.token}`}
</Heading>
<Icon
icon={exchange}
Expand Down

0 comments on commit ea74ec2

Please sign in to comment.