Skip to content

Commit

Permalink
abort account import should reset account state, fixes #135 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
decentraliser authored Mar 20, 2020
1 parent 81c23a0 commit 6a0cbb7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default class ImportMnemonicTs extends Vue {
// - delete the temporary account from storage
const identifier = this.currentAccount.getIdentifier()
this.accounts.delete(identifier)
this.$store.dispatch('account/RESET_STATE')

// - back to previous page
this.$router.push({name: 'accounts.importAccount.info'})
Expand Down

0 comments on commit 6a0cbb7

Please sign in to comment.