From cfa75f2f00450b3b28c11ea2ba985a46612060f4 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Tue, 26 Feb 2019 14:38:37 +0200 Subject: [PATCH] Tiny signup fix --- app/src/containers/UsernameFormContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/containers/UsernameFormContainer.js b/app/src/containers/UsernameFormContainer.js index 0b36a6a..b15ad06 100644 --- a/app/src/containers/UsernameFormContainer.js +++ b/app/src/containers/UsernameFormContainer.js @@ -74,7 +74,7 @@ class UsernameFormContainer extends Component { orbitdbInfo.orbitPrivateKey, orbitdbInfo.topicsDB, orbitdbInfo.postsDB - ]); + ], { from: this.props.account}); } /*this.setState({ usernameInput: '' });*/ } @@ -101,7 +101,6 @@ class UsernameFormContainer extends Component { errorHeader: "Data disapproved", errorMessage: "This username is already taken" }); - return } }) } @@ -150,6 +149,7 @@ class UsernameFormContainer extends Component { const mapStateToProps = state => { return { + account: state.accounts[0], contracts: state.contracts, transactions: state.transactions, transactionStack: state.transactionStack,