Browse Source

Tiny signup fix

develop
Ezerous 6 years ago
parent
commit
cfa75f2f00
  1. 4
      app/src/containers/UsernameFormContainer.js

4
app/src/containers/UsernameFormContainer.js

@ -74,7 +74,7 @@ class UsernameFormContainer extends Component {
orbitdbInfo.orbitPrivateKey, orbitdbInfo.orbitPrivateKey,
orbitdbInfo.topicsDB, orbitdbInfo.topicsDB,
orbitdbInfo.postsDB orbitdbInfo.postsDB
]); ], { from: this.props.account});
} }
/*this.setState({ usernameInput: '' });*/ /*this.setState({ usernameInput: '' });*/
} }
@ -101,7 +101,6 @@ class UsernameFormContainer extends Component {
errorHeader: "Data disapproved", errorHeader: "Data disapproved",
errorMessage: "This username is already taken" errorMessage: "This username is already taken"
}); });
return
} }
}) })
} }
@ -150,6 +149,7 @@ class UsernameFormContainer extends Component {
const mapStateToProps = state => { const mapStateToProps = state => {
return { return {
account: state.accounts[0],
contracts: state.contracts, contracts: state.contracts,
transactions: state.transactions, transactions: state.transactions,
transactionStack: state.transactionStack, transactionStack: state.transactionStack,

Loading…
Cancel
Save