Skip to content

Commit

Permalink
fix(limit-orders): price updated warning should not be displayed (cow…
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 authored Feb 26, 2024
1 parent bf8998d commit 7a5b64d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export function LimitOrdersConfirmModal(props: LimitOrdersConfirmModalProps) {
priceImpact={priceImpact}
buttonText={buttonText}
recipient={recipient}
isPriceStatic={true}
>
<>
<LimitOrdersDetails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface TradeConfirmationProps {
priceImpact: PriceImpact
title: JSX.Element | string
refreshInterval?: number
isPriceStatic?: boolean
recipient: string | null
buttonText?: React.ReactNode
children?: JSX.Element
Expand Down Expand Up @@ -57,6 +58,7 @@ export function TradeConfirmation(props: TradeConfirmationProps) {
buttonText = 'Confirm',
children,
recipient,
isPriceStatic,
} = frozenProps || props

/**
Expand Down Expand Up @@ -128,7 +130,7 @@ export function TradeConfirmation(props: TradeConfirmationProps) {
{children}
{/*Banners*/}
{showRecipientWarning && <CustomRecipientWarningBanner orientation={BannerOrientation.Horizontal} />}
{isPriceChanged && <PriceUpdatedBanner onClick={resetPriceChanged} />}
{isPriceChanged && !isPriceStatic && <PriceUpdatedBanner onClick={resetPriceChanged} />}
<ButtonPrimary onClick={handleConfirmClick} disabled={isButtonDisabled} buttonSize={ButtonSize.BIG}>
{hasPendingTrade ? (
<LongLoadText fontSize={15} fontWeight={500}>
Expand Down

0 comments on commit 7a5b64d

Please sign in to comment.