Skip to content

Commit

Permalink
WalletSeedDump: Remove unnecessary clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
whphhg committed May 23, 2017
1 parent dc74ad5 commit 8040d6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
"parser": "babel-eslint"
},
"dependencies": {
"antd": "2.10.1",
"antd": "2.10.2",
"electron-compile": "6.4.1",
"i18next": "8.3.0",
"i18next-node-fs-backend": "1.0.0",
"mobx": "3.1.9",
"mobx-logger": "0.5.0",
"mobx-logger": "0.6.0",
"mobx-react": "4.1.8",
"moment": "2.18.1",
"react": "15.5.4",
Expand Down
9 changes: 1 addition & 8 deletions src/components/WalletSeedDump.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ export default class WalletSeedDump extends React.Component {
this.wallet = props.wallet
}

/** Clear seed when component unmounts. */
componentWillUnmount () {
if (this.seed !== '') {
this.setSeed()
}
}

/**
* Get error status.
* @function errorStatus
Expand All @@ -52,7 +45,7 @@ export default class WalletSeedDump extends React.Component {
* @function setSeed
* @param {string} seed - Wallet seed.
*/
@action setSeed = (seed = '') => {
@action setSeed = (seed) => {
this.seed = seed
}

Expand Down

0 comments on commit 8040d6f

Please sign in to comment.