From 367de5b29c1689dba83fe08efb5cde7e5d14aa7c Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 17 Nov 2020 16:43:27 -0800 Subject: [PATCH] fix(servers): Updating default servers --- src/components/admin-lte/index.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/admin-lte/index.js b/src/components/admin-lte/index.js index ff7abc9..32fa0a3 100644 --- a/src/components/admin-lte/index.js +++ b/src/components/admin-lte/index.js @@ -371,10 +371,10 @@ class AdminLTEPage extends React.Component { const servers = [server1, server2] + // Default server is BCHN. let selectedServer = server1 - // Assign the second server if the url path - // is different of 'wallet.fullstack.cash' - if (accessLocation !== 'wallet.fullstack.cash') { + + if (accessLocation === 'wallet.fullstack.cash') { selectedServer = server1 } @@ -387,6 +387,11 @@ class AdminLTEPage extends React.Component { selectedServer = server2 } + // Split uses BCHN by default + if (accessLocation === 'splitbch.com') { + selectedServer = server1 + } + walletInfo.selectedServer = selectedServer walletInfo.servers = servers