Skip to content

Commit 148f10e

Browse files
committed
feat: enable tx submission before quotes finish streaming
1 parent 5ec585c commit 148f10e

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

ui/pages/bridge/prepare/bridge-cta-button.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ export const BridgeCTAButton = ({
150150
}}
151151
loading={isSubmitting}
152152
disabled={
153-
// Disable submission until all quotes have been fetched
154-
isLoading ||
155153
!isTxSubmittable ||
156154
isTxAlertPresent ||
157155
isQuoteExpired ||

ui/pages/bridge/prepare/prepare-bridge-page.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ const PrepareBridgePage = ({
209209
isLoading,
210210
// This quote may be older than the refresh rate, but we keep it for display purposes
211211
activeQuote: unvalidatedQuote,
212-
quotesRefreshCount,
213212
} = useSelector(getBridgeQuotes);
214213

215214
const isQuoteExpired = useSelector((state) =>
@@ -253,7 +252,6 @@ const PrepareBridgePage = ({
253252

254253
const ticker = useMultichainSelector(getMultichainNativeCurrency);
255254
const {
256-
isEstimatedReturnLow,
257255
isNoQuotesAvailable,
258256
isInsufficientGasForQuote,
259257
isInsufficientBalance,
@@ -300,10 +298,6 @@ const PrepareBridgePage = ({
300298

301299
const [rotateSwitchTokens, setRotateSwitchTokens] = useState(false);
302300

303-
// Resets the banner visibility when the estimated return is low
304-
const [isLowReturnBannerOpen, setIsLowReturnBannerOpen] = useState(true);
305-
useEffect(() => setIsLowReturnBannerOpen(true), [quotesRefreshCount]);
306-
307301
// Resets the banner visibility when new alerts found
308302
const [isTokenAlertBannerOpen, setIsTokenAlertBannerOpen] = useState(true);
309303
useEffect(() => setIsTokenAlertBannerOpen(true), [tokenAlert]);

0 commit comments

Comments
 (0)