fix: fix network name displayed on confirmation page header#23702
fix: fix network name displayed on confirmation page header#23702
Conversation
|
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. |
Builds ready [473d8d2]
Page Load Metrics (808 ± 475 ms)
Bundle size diffs
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #23702 +/- ##
========================================
Coverage 68.81% 68.81%
========================================
Files 1169 1169
Lines 44376 44379 +3
Branches 11874 11878 +4
========================================
+ Hits 30536 30539 +3
Misses 13840 13840 ☔ View full report in Codecov by Sentry. |
| if (providerType === NETWORK_TYPES.RPC || type === NETWORK_TYPES.RPC) { | ||
| const { nickname } = confirmationNetwork; | ||
| if (providerConfig.type === NETWORK_TYPES.RPC) { | ||
| networkDisplayName = nickname ?? t('privateNetwork'); |
There was a problem hiding this comment.
[double-checking] if there wasn't confirmationNetwork found and if providerConfig.type === NETWORK_TYPES.RPC), would we want to set networkDisplayName to t('privateNetwork')
There was a problem hiding this comment.
Yep, providerConfig.type === NETWORK_TYPES.RPC) is true for custom networks.
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
Description
fix network name displayed on confirmation page header. network name are displayed wrong in 2 cases:
Related issues
Fixes: #23686
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist