Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow onboarding and unlocking wallet without Infura mainnet connectivity #23388

Merged
merged 3 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ export const NetworkListMenu = ({ onClose }) => {
<Text>{t('showTestnetNetworks')}</Text>
<ToggleButton
value={showTestNetworks}
disabled={currentlyOnTestNetwork || !isUnlocked}
disabled={currentlyOnTestNetwork}
onToggle={handleToggle}
/>
</Box>
Expand All @@ -426,7 +426,6 @@ export const NetworkListMenu = ({ onClose }) => {
<Box padding={4}>
<ButtonSecondary
size={ButtonSecondarySize.Lg}
disabled={!isUnlocked}
startIconName={IconName.Add}
block
onClick={() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ describe('NetworkListMenu', () => {
expect(queryByText('Chain 5')).not.toBeInTheDocument();
});

it('disables the "Add Network" button when MetaMask is locked', () => {
it('enables the "Add Network" button when MetaMask is locked', () => {
const { queryByText } = render(false, '0x5', 'chain5', false);
expect(queryByText('Add network')).toBeDisabled();
expect(queryByText('Add network')).toBeEnabled();
});

it('enables the "Add Network" button when MetaMask is true', () => {
Expand Down
Loading