aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorEvgeniy Filatov <efilatov@geeksforless.net>2018-08-23 06:26:30 +0800
committerEvgeniy Filatov <efilatov@geeksforless.net>2018-08-23 06:26:30 +0800
commit9a80d6e8598850fec00471c6101c194e90c30353 (patch)
treee5529c5754942b5e185cd89f8314fa6349ca77a9 /ui
parentc0b5e8a088b7ed2ac557ad2b6bc6b55d9bae1919 (diff)
downloadtangerine-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.js5
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) {