File tree 3 files changed +15
-1
lines changed
pages/settings/networks-tab/networks-form
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,15 @@ export const NetworkListMenu = ({ onClose }) => {
358
358
/>
359
359
) : null }
360
360
< Box className = "multichain-network-list-menu" >
361
+ < Box
362
+ paddingRight = { 4 }
363
+ paddingLeft = { 4 }
364
+ paddingBottom = { 4 }
365
+ display = { Display . Flex }
366
+ justifyContent = { JustifyContent . spaceBetween }
367
+ >
368
+ < Text > { t ( 'enabledNetworks' ) } </ Text >
369
+ </ Box >
361
370
{ searchResults . length === 0 && focusSearch ? (
362
371
< Text
363
372
paddingLeft = { 4 }
Original file line number Diff line number Diff line change @@ -591,7 +591,7 @@ const NetworksForm = ({
591
591
warningMessage = t ( 'failedToFetchTickerSymbolData' ) ;
592
592
} else if (
593
593
! matchedNames . some (
594
- ( name ) => name . toLowerCase ( ) === formName . toLowerCase ( ) ,
594
+ ( name ) => name ? .toLowerCase ( ) === formName . toLowerCase ( ) ,
595
595
)
596
596
) {
597
597
warningKey = 'wrongNetworkName' ;
@@ -671,12 +671,14 @@ const NetworksForm = ({
671
671
const nameWarning = await validateNetworkName ( chainId , networkName ) ;
672
672
const blockExplorerError = validateBlockExplorerURL ( blockExplorerUrl ) ;
673
673
const rpcUrlError = validateRPCUrl ( rpcUrl ) ;
674
+
674
675
setErrors ( {
675
676
...errors ,
676
677
blockExplorerUrl : blockExplorerError ,
677
678
rpcUrl : rpcUrlError ,
678
679
chainId : chainIdError ,
679
680
} ) ;
681
+
680
682
setWarnings ( {
681
683
...warnings ,
682
684
chainId : chainIdWarning ,
You can’t perform that action at this time.
0 commit comments