You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After V2 quote migration, the priceData check in getActiveQuotePriceData was only verifying the priceData.priceImpact object, which can be empty. As a result the no-price banner does not show up as expected
This PR updates the selector to check priceData.priceImpact.amount for truthiness instead
Changelog
CHANGELOG entry: fix: show swap no-price banner when priceImpact is not available
I've completed the PR template to the best of my ability
I’ve included tests if applicable
I’ve documented my code using JSDoc format if applicable
I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
Pre-merge reviewer checklist
I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
Note
Low Risk
Small selector fix restoring an existing swap/bridge warning banner; no auth, security, or data-handling changes.
Overview
Fixes the swap/bridge no-price banner not appearing after the V2 quote migration when priceData exists but priceImpact.amount is missing.
getActiveQuotePriceData now returns undefined unless priceData.priceImpact.amount is present, so the price-data-unavailable alert triggers correctly. getFormattedPriceImpactFiat also reads fiat impact through this selector.
Tests and mocks are updated to match the new price-data shape and share DEFAULT_VALIDATION_ERRORS.
Reviewed by Cursor Bugbot for commit de82cdb. Bugbot is set up for automated code reviews on this repo. Configure here.
micaelae
changed the title
fix: show Swap no-price banner when priceImpact is not available
fix: show swap no-price banner when price impact is not available
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
After V2 quote migration, the priceData check in
getActiveQuotePriceDatawas only verifying thepriceData.priceImpactobject, which can be empty. As a result the no-price banner does not show up as expectedThis PR updates the selector to check
priceData.priceImpact.amountfor truthiness insteadChangelog
CHANGELOG entry: fix: show swap no-price banner when priceImpact is not available
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/SWAPS-4897
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Small selector fix restoring an existing swap/bridge warning banner; no auth, security, or data-handling changes.
Overview
Fixes the swap/bridge no-price banner not appearing after the V2 quote migration when
priceDataexists butpriceImpact.amountis missing.getActiveQuotePriceDatanow returnsundefinedunlesspriceData.priceImpact.amountis present, so theprice-data-unavailablealert triggers correctly.getFormattedPriceImpactFiatalso reads fiat impact through this selector.Tests and mocks are updated to match the new price-data shape and share
DEFAULT_VALIDATION_ERRORS.Reviewed by Cursor Bugbot for commit de82cdb. Bugbot is set up for automated code reviews on this repo. Configure here.