diff options
author | Evgeniy Filatov <efilatov@geeksforless.net> | 2018-08-23 06:26:30 +0800 |
---|---|---|
committer | Evgeniy Filatov <efilatov@geeksforless.net> | 2018-08-23 06:26:30 +0800 |
commit | 9a80d6e8598850fec00471c6101c194e90c30353 (patch) | |
tree | e5529c5754942b5e185cd89f8314fa6349ca77a9 /ui | |
parent | c0b5e8a088b7ed2ac557ad2b6bc6b55d9bae1919 (diff) | |
download | tangerine-wallet-browser-9a80d6e8598850fec00471c6101c194e90c30353.tar.gz tangerine-wallet-browser-9a80d6e8598850fec00471c6101c194e90c30353.tar.zst tangerine-wallet-browser-9a80d6e8598850fec00471c6101c194e90c30353.zip |
updated docs, small improvement of recent RPC rendering
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/dropdowns/network-dropdown.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/dropdowns/network-dropdown.js b/ui/app/components/dropdowns/network-dropdown.js index b1aeed376..63a30dd82 100644 --- a/ui/app/components/dropdowns/network-dropdown.js +++ b/ui/app/components/dropdowns/network-dropdown.js @@ -272,8 +272,9 @@ NetworkDropdown.prototype.getNetworkName = function () { NetworkDropdown.prototype.renderCommonRpc = function (rpcList, provider) { const props = this.props + const reversedRpcList = rpcList.slice().reverse() - return rpcList.map((rpc) => { + return reversedRpcList.map((rpc) => { const currentRpcTarget = provider.type === 'rpc' && rpc === provider.rpcTarget if ((rpc === 'http://localhost:8545') || currentRpcTarget) { @@ -302,7 +303,7 @@ NetworkDropdown.prototype.renderCommonRpc = function (rpcList, provider) { ] ) } - }).reverse() + }) } NetworkDropdown.prototype.renderCustomOption = function (provider) { |