Skip to content

Commit

Permalink
Fix ui bugs with slippage
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromcunha committed Dec 4, 2024
1 parent 13eb4f7 commit 995b1bc
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ export const ReviewQuoteStep: FC<ReviewQuoteProps> = ({

let breakdown: { title: string; value: ReactNode }[] = []

if (minimumAmountFormatted) {
if (
minimumAmountFormatted &&
quote?.details?.slippageTolerance?.destination?.percent &&
quote.details.slippageTolerance.destination.percent != '0.00'
) {
breakdown.push({
title: 'Min. Received',
value: (
Expand Down Expand Up @@ -150,7 +154,8 @@ export const ReviewQuoteStep: FC<ReviewQuoteProps> = ({
<Flex css={{ color: 'gray9' }}>
<FontAwesomeIcon
icon={faInfoCircle}
width={16}
width={14}
height={14}
style={{
display: 'inline-block'
}}
Expand Down Expand Up @@ -406,7 +411,11 @@ export const ReviewQuoteStep: FC<ReviewQuoteProps> = ({
align="center"
css={{ width: '100%', gap: '4' }}
>
<Text style="subtitle2" color="subtle">
<Text
style="subtitle2"
color="subtle"
css={{ alignSelf: 'flex-start' }}
>
{item.title}
</Text>
{isFetchingQuote ? (
Expand Down

0 comments on commit 995b1bc

Please sign in to comment.