diff --git a/app/src/components/UsernameFormContainer.js b/app/src/components/UsernameFormContainer.js index dc3ac1a..27259f7 100644 --- a/app/src/components/UsernameFormContainer.js +++ b/app/src/components/UsernameFormContainer.js @@ -5,11 +5,8 @@ import { connect } from 'react-redux'; import { Button, Dimmer, Form, Header, Loader, Message } from 'semantic-ui-react'; import { drizzle } from '../index'; -import { createDatabases } from '../utils/orbitUtils'; import { updateUsername } from '../redux/actions/transactionsActions'; -import { DATABASES_CREATED, updateDatabases } from '../redux/actions/orbitActions'; - const contract = 'Forum'; const checkUsernameTakenMethod = 'isUserNameTaken'; const signUpMethod = 'signUp'; @@ -79,10 +76,6 @@ class UsernameFormContainer extends Component { this.setState({ signingUp: true }); - const { orbitdb,topicsDB,postsDB } = await createDatabases(); - dispatch( - updateDatabases(DATABASES_CREATED, orbitdb, topicsDB, postsDB), - ); this.stackId = drizzle.contracts[contract].methods[signUpMethod].cacheSend( ...[usernameInput], { from: account } ); diff --git a/app/src/helpers/EpochTimeConverter.js b/app/src/helpers/EpochTimeConverter.js index 6983095..8a27d44 100644 --- a/app/src/helpers/EpochTimeConverter.js +++ b/app/src/helpers/EpochTimeConverter.js @@ -6,7 +6,7 @@ const epochTimeConverter = (timestamp) => { timestampDate.getFullYear()}, ${ timestampDate.getHours()}:${ ("0"+timestampDate.getMinutes()).slice(-2)}:${ - timestampDate.getSeconds()}`); + ("0"+timestampDate.getSeconds()).slice(-2)}`); }; export default epochTimeConverter;