Skip to content

Commit

Permalink
Fix automatic network switching
Browse files Browse the repository at this point in the history
The network should switch automatically when adding a custom network
manually. This was broken because of an invalid option (`active` was
used instead of `setActive`).
  • Loading branch information
Gudahtt committed Aug 22, 2023
1 parent 36c2236 commit acf607e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/UI/NetworkModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const NetworkModals = (props: NetworkProps) => {
rpcPrefs: { blockExplorerUrl },
},
{
active: true,
setActive: true,
// Metrics-related properties required, but the metric event is a no-op
// TODO: Use events for controller metric events
referrer: 'ignored',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ class NetworkSettings extends PureComponent {
},
},
{
active: true,
setActive: true,
// Metrics-related properties required, but the metric event is a no-op
// TODO: Use events for controller metric events
referrer: 'ignored',
Expand Down

0 comments on commit acf607e

Please sign in to comment.