Skip to content

Commit

Permalink
cleanup;
Browse files Browse the repository at this point in the history
  • Loading branch information
stephensprinkle committed Sep 27, 2017
1 parent 579874c commit 6f99409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/modules/auth/actions/import-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { augur } from 'services/augurjs'
import { login } from 'modules/auth/actions/login'
import logError from 'utils/log-error'

export const importAccount = (password, keystore, callback = logError) => (dispatch, getState) => {
console.log('importAccount -- ', password, keystore, callback)

export const importAccount = (password, keystore, callback = logError) => (dispatch, getState) => (
augur.accounts.importAccount(password, keystore, (account) => {
if (!account || !account.keystore) {
callback(true)
Expand All @@ -13,4 +11,4 @@ export const importAccount = (password, keystore, callback = logError) => (dispa

dispatch(login(keystore, password, err => callback(err)))
})
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ export default class KeystoreConnect extends Component {
e.preventDefault()

if (s.keystore && s.password) {
console.log('keystore -- ', s.keystore)
p.importAccount(s.password, s.keystore, (err) => {
console.log('importAccount cb -- ', err)

if (err) {
return this.setState({
error: 'Account Import Failed'
Expand Down

0 comments on commit 6f99409

Please sign in to comment.