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:
parent
dcd2927f03
commit
314125e6fd
@ -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}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user