Skip to content

fix: cp-12.17.0 mms-2255 double high cost alert #32158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Apr 24, 2025
16 changes: 1 addition & 15 deletions ui/pages/bridge/prepare/prepare-bridge-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -916,20 +916,6 @@ const PrepareBridgePage = () => {
onClose={() => setIsCannotVerifyTokenBannerOpen(false)}
/>
)}
{isEstimatedReturnLow && isLowReturnBannerOpen && activeQuote && (
<BannerAlert
ref={insufficientBalanceBannerRef}
marginInline={4}
marginBottom={3}
title={t('lowEstimatedReturnTooltipTitle')}
severity={BannerAlertSeverity.Warning}
description={t('lowEstimatedReturnTooltipMessage', [
BRIDGE_QUOTE_MAX_RETURN_DIFFERENCE_PERCENTAGE * 100,
])}
textAlign={TextAlign.Left}
onClose={() => setIsLowReturnBannerOpen(false)}
/>
)}
{tokenAlert && isTokenAlertBannerOpen && (
<BannerAlert
ref={tokenAlertBannerRef}
Expand Down Expand Up @@ -962,7 +948,7 @@ const PrepareBridgePage = () => {
textAlign={TextAlign.Left}
/>
)}
{isEstimatedReturnLow && isLowReturnBannerOpen && (
{isEstimatedReturnLow && isLowReturnBannerOpen && activeQuote && (
<BannerAlert
ref={insufficientBalanceBannerRef}
marginInline={4}
Expand Down
Loading