1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Remove unused isImportedKeyring prop (#9794)

This prop was being passed to the `CreatePassword` component, but that
component has no prop with this name. In fact, no component in this
entire project does.
This commit is contained in:
Mark Stacey 2020-11-04 19:56:17 -03:30 committed by GitHub
parent dcd2927f03
commit 314125e6fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,6 @@ export default class FirstTimeFlow extends PureComponent {
state = {
seedPhrase: '',
isImportedKeyring: false,
}
componentDidMount() {
@ -80,7 +79,6 @@ export default class FirstTimeFlow extends PureComponent {
try {
const vault = await createNewAccountFromSeed(password, seedPhrase)
this.setState({ isImportedKeyring: true })
return vault
} catch (error) {
throw new Error(error.message)
@ -101,7 +99,7 @@ export default class FirstTimeFlow extends PureComponent {
}
render() {
const { seedPhrase, isImportedKeyring } = this.state
const { seedPhrase } = this.state
const { verifySeedPhrase } = this.props
return (
@ -132,7 +130,6 @@ export default class FirstTimeFlow extends PureComponent {
render={(routeProps) => (
<CreatePassword
{...routeProps}
isImportedKeyring={isImportedKeyring}
onCreateNewAccount={this.handleCreateNewAccount}
onCreateNewAccountFromSeed={this.handleImportWithSeedPhrase}
/>