Skip to content
Permalink
Browse files

fix(onboarding): show recover wallet passphrase form

When recovering a wallet wallet ensure that we show the passphrase
form in the case tha that there is an error due to a missing or invalid
passphrase. Show an error dialog incase of all other errors.
  • Loading branch information...
mrfelton committed Aug 14, 2019
1 parent 9bc7415 commit 7ae13a5ca793ec9199dce4dcd17c16319f4adc95
Showing with 7 additions and 8 deletions.
  1. +7 −8 renderer/components/Onboarding/Steps/WalletRecover.js
@@ -1,7 +1,7 @@
import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage, intlShape, injectIntl } from 'react-intl'
import { Bar, Form, Header, Message, Input, Spinner, Text } from 'components/UI'
import { Bar, Form, Header, Input, Spinner, Text } from 'components/UI'
import ErrorDialog from './components/ErrorDialog'
import messages from './messages'

@@ -131,16 +131,15 @@ class WalletRecover extends React.Component {
willAutoFocus
/>
) : (
<Message variant="error">{createWalletError}</Message>
<ErrorDialog
error={createWalletError}
isOpen={Boolean(createWalletError)}
isRestoreMode
onClose={this.resetOnboarding}
/>
)}
</>
)}
<ErrorDialog
error={createWalletError}
isOpen={Boolean(createWalletError)}
isRestoreMode
onClose={this.resetOnboarding}
/>
</>
)
}}

0 comments on commit 7ae13a5

Please sign in to comment.
You can’t perform that action at this time.