Skip to content

Commit

Permalink
change the first choose to mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
robinsonking committed Aug 28, 2018
1 parent 8e29f03 commit 52e553a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion app/actions/StakePoolActions.js
Expand Up @@ -14,7 +14,14 @@ export const UPDATESTAKEPOOLCONFIG_SUCCESS = "UPDATESTAKEPOOLCONFIG_SUCCESS";
const updateSavedConfig = (newPoolInfo, poolHost, apiKey, accountNum) =>
(dispatch, getState) => {
const currentStakePoolConfig = sel.currentStakePoolConfig(getState());
const stakePoolConfigs = currentStakePoolConfig.map(config =>
let stakePoolConfigs = currentStakePoolConfig.map(config => {
if (config.Host && config.Host.endsWith("/")){
config.Host = config.Host.slice(0,-1)
}
return config
})

stakePoolConfigs = currentStakePoolConfig.map(config =>
(config.Host === poolHost)
? (apiKey || accountNum)
? { ...config, ...newPoolInfo, ApiKey: apiKey }
Expand Down
Expand Up @@ -46,7 +46,7 @@ const CreateWalletForm = ({
</div>
<div className="advanced-daemon-column advanced-daemon-column--70p">
<NetworkSwitch
enabled={newWalletNetwork !== "mainnet"}
enabled={newWalletNetwork !== "testnet"}
onClick={onChangeCreateWalletNetwork}
/>
</div>
Expand Down
Expand Up @@ -13,7 +13,7 @@ class WalletSelectionBody extends React.Component {
getInitialState() {
return {
newWalletName: "",
newWalletNetwork: "testnet",
newWalletNetwork: "mainnet",
sideActive: false,
selectedWallet: this.props.availableWallets ? this.props.availableWallets[0] : null
};
Expand Down
2 changes: 1 addition & 1 deletion app/config.js
Expand Up @@ -30,7 +30,7 @@ export function initWalletCfg(testnet, walletPath) {
config.set("maxfee","0.1");
}
if (!config.has("maxpricerelative")) {
config.set("maxpricerelative","10");
config.set("maxpricerelative","100");
}
if (!config.has("maxpriceabsolute")) {
config.set("maxpriceabsolute","0");
Expand Down

0 comments on commit 52e553a

Please sign in to comment.