mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
fix(servers): Updating default servers
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user