Skip to content

Commit

Permalink
Simplify variable assignment
Browse files Browse the repository at this point in the history
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
  • Loading branch information
Gudahtt and mcmire authored Aug 3, 2023
1 parent 7104b9b commit 9b17491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Views/Settings/NetworksSettings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ class NetworksSettings extends PureComponent {
const { networkConfigurations } = this.props;
return Object.values(networkConfigurations).map(
({ rpcUrl, nickname, chainId }, i) => {
const { name } = { name: nickname || rpcUrl };
const name = nickname || rpcUrl;
const image = getNetworkImageSource({ chainId });
return this.networkElement(name, image, i, rpcUrl, true);
},
Expand Down

0 comments on commit 9b17491

Please sign in to comment.