Skip to content

Commit 9b507a0

Browse files
committed
fix: add enabled network section
1 parent 2ef606a commit 9b507a0

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

app/_locales/en/messages.json

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/components/multichain/network-list-menu/network-list-menu.js

+9
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,15 @@ export const NetworkListMenu = ({ onClose }) => {
358358
/>
359359
) : null}
360360
<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>
361370
{searchResults.length === 0 && focusSearch ? (
362371
<Text
363372
paddingLeft={4}

ui/pages/settings/networks-tab/networks-form/networks-form.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ const NetworksForm = ({
591591
warningMessage = t('failedToFetchTickerSymbolData');
592592
} else if (
593593
!matchedNames.some(
594-
(name) => name.toLowerCase() === formName.toLowerCase(),
594+
(name) => name?.toLowerCase() === formName.toLowerCase(),
595595
)
596596
) {
597597
warningKey = 'wrongNetworkName';
@@ -671,12 +671,14 @@ const NetworksForm = ({
671671
const nameWarning = await validateNetworkName(chainId, networkName);
672672
const blockExplorerError = validateBlockExplorerURL(blockExplorerUrl);
673673
const rpcUrlError = validateRPCUrl(rpcUrl);
674+
674675
setErrors({
675676
...errors,
676677
blockExplorerUrl: blockExplorerError,
677678
rpcUrl: rpcUrlError,
678679
chainId: chainIdError,
679680
});
681+
680682
setWarnings({
681683
...warnings,
682684
chainId: chainIdWarning,

0 commit comments

Comments
 (0)