Skip to content

Conversation

@runway-github
Copy link
Contributor

@runway-github runway-github bot commented Dec 12, 2025

Description

Fix error from QuotedSwapTransactionData when swap is rendered.

Changelog

CHANGELOG entry:

Related issues

Fixes: #38811

Manual testing steps

  1. Submit uniswap transaction
  2. Open advance view
  3. No error should be thrown

Screenshots/Recordings

TODO

Pre-merge author checklist

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

Render QuotedSwapTransactionData only when isQuotedSwapDisplayedInInfo is true to avoid errors when no quoted swap is selected.

  • Confirm UI
    • Update ui/pages/confirmations/.../advanced-details/advanced-details.tsx:
      • Use useDappSwapContext to read isQuotedSwapDisplayedInInfo.
      • Conditionally render QuotedSwapTransactionData instead of always rendering it.
      • No functional changes to NonceDetails, TransactionData, or NestedTransactionData.

Written by Cursor Bugbot for commit 2dc0087. This will update automatically on new commits. Configure here.

6f7421c

…ansactionData if quoted swap is not selected (#38812)

<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->

## **Description**

Fix error from QuotedSwapTransactionData when swap is rendered.

## **Changelog**

<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`

If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`

(This helps the Release Engineer do their job more quickly and
accurately)
-->

CHANGELOG entry:

## **Related issues**

Fixes: #38811

## **Manual testing steps**

1. Submit uniswap transaction
2. Open advance view
3. No error should be thrown

## **Screenshots/Recordings**
TODO

## **Pre-merge author checklist**

- [X] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [X] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
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.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> Render `QuotedSwapTransactionData` only when
`isQuotedSwapDisplayedInInfo` from dapp-swap context is true, preventing
errors when a quoted swap isn't selected.
> 
> - **Confirmations UI**
> - Use `useDappSwapContext` to access `isQuotedSwapDisplayedInInfo` in
`AdvancedDetails`.
> - Conditionally render `QuotedSwapTransactionData` based on this flag
instead of always rendering it.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
14ea8b1. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
@runway-github runway-github bot requested a review from a team as a code owner December 12, 2025 16:17
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-bots Bot team (for MetaMask Bot, Runway Bot, etc.) label Dec 12, 2025
@metamaskbot
Copy link
Collaborator

✨ Files requiring CODEOWNER review ✨

@MetaMask/confirmations (1 files, +3 -1)
  • 📁 ui/
    • 📁 pages/
      • 📁 confirmations/
        • 📁 components/
          • 📁 confirm/
            • 📁 info/
              • 📁 shared/
                • 📁 advanced-details/
                  • 📄 advanced-details.tsx +3 -1

@metamaskbot
Copy link
Collaborator

Builds ready [2dc0087]
UI Startup Metrics (1284 ± 112 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12841066162511213561434
load106690413709511401231
domContentLoaded105989713629511311226
domInteractive271792172487
firstPaint61388137742210491189
backgroundConnect22419827014231253
firstReactRender3420154193760
getState43171632546104
initialActions107113
loadScripts8426891123919051012
setupStore1476681530
numNetworkReqs261888191885
BrowserifyPower User HomeuiStartup19591604264221420712427
load1021880166913810591298
domContentLoaded1010872165813810411291
domInteractive34171512829113
firstPaint5538516753969571209
backgroundConnect23620271184221514
firstReactRender52418985669
getState18214329026193232
initialActions102112
loadScripts80567314251368351089
setupStore17104581639
numNetworkReqs79661371778129
WebpackStandard HomeuiStartup836696105384888996
load65757291777708808
domContentLoaded65256491277702801
domInteractive261698202389
firstPaint25384868184219715
backgroundConnect1063951116
firstReactRender2720181163036
getState251467102942
initialActions102112
loadScripts64956191076698799
setupStore1063241118
numNetworkReqs261888191883
WebpackPower User HomeuiStartup15681234229624117472019
load683589107097692898
domContentLoaded674584106097685887
domInteractive36171683232118
firstPaint30189907212349762
backgroundConnect1238638206110566
firstReactRender5642118116172
getState17214524017181204
initialActions103011
loadScripts671581104995683882
setupStore1594981538
numNetworkReqs80652422575141
FirefoxBrowserifyStandard HomeuiStartup12471032158713113321513
load102888512548510851205
domContentLoaded102888512498410851204
domInteractive4830142236297
firstPaint------
backgroundConnect3921162254098
firstReactRender23189592335
getState1063241119
initialActions102112
loadScripts100686812378010581165
setupStore126112121033
numNetworkReqs281884192281
BrowserifyPower User HomeuiStartup29801837863193730464780
load13891033300343014802738
domContentLoaded13881033300243014802736
domInteractive13334956148109499
firstPaint------
backgroundConnect2273015553152121090
firstReactRender65412023063140
getState304711101238359854
initialActions3034537
loadScripts1303998280635912852210
setupStore1658974218192708
numNetworkReqs79601883172168
WebpackStandard HomeuiStartup16471409208714617171970
load1353120817339013861530
domContentLoaded1353120817339013861530
domInteractive87333104499139
firstPaint------
backgroundConnect52241973353123
firstReactRender312174113170
getState197204291684
initialActions103122
loadScripts1324119016378113591483
setupStore217191271881
numNetworkReqs281887192080
WebpackPower User HomeuiStartup31232134565691037475195
load15441153301946516412777
domContentLoaded15431153301946516412776
domInteractive99314358395316
firstPaint------
backgroundConnect2272815403222111005
firstReactRender63382773462123
getState3186812863023661042
initialActions3077927
loadScripts14121125286132014742181
setupStore165101056204244601
numNetworkReqs79592272973146
📊 Page Load Benchmark Results

Current Commit: 2dc0087 | Date: 12/12/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±72ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 735ms (±69ms) 🟢 | historical mean value: 725ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 72ms 1.01s 1.32s 1.28s 1.32s
domContentLoaded 735ms 69ms 700ms 1.00s 938ms 1.00s
firstPaint 76ms 11ms 56ms 168ms 84ms 168ms
firstContentfulPaint 76ms 11ms 56ms 168ms 84ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms

@HowardBraham HowardBraham merged commit 84f6725 into release/13.13.0 Dec 12, 2025
174 of 175 checks passed
@HowardBraham HowardBraham deleted the runway-cherry-pick-13.13.0-1765556228 branch December 12, 2025 17:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2025
@metamaskbot metamaskbot added the release-13.13.0 Issue or pull request that will be included in release 13.13.0 label Dec 12, 2025
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-13.13.0 on PR, as PR was cherry-picked in branch 13.13.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.13.0 Issue or pull request that will be included in release 13.13.0 team-bots Bot team (for MetaMask Bot, Runway Bot, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants