Browse Source

Handle case where device path change when opening app

master
Ledger 7 years ago
parent
commit
3aabfd9824
  1. 3
      src/components/EnsureDeviceApp.js
  2. 3
      src/components/GenuineCheck.js

3
src/components/EnsureDeviceApp.js

@ -85,11 +85,12 @@ class EnsureDeviceApp extends Component<{
}
render() {
const { account, currency, ...props } = this.props
const { account, currency, device, ...props } = this.props
const cur = account ? account.currency : currency
const Icon = cur ? getCryptoCurrencyIcon(cur) : null
return (
<DeviceInteraction
key={device ? device.path : null}
shouldRenderRetry
steps={[
{

3
src/components/GenuineCheck.js

@ -115,7 +115,7 @@ class GenuineCheck extends PureComponent<Props> {
}
render() {
const { onSuccess, ...props } = this.props
const { onSuccess, device, ...props } = this.props
const steps = [
{
id: 'device',
@ -156,6 +156,7 @@ class GenuineCheck extends PureComponent<Props> {
return (
<DeviceInteraction
key={device ? device.path : null}
{...props}
waitBeforeSuccess={500}
steps={steps}

Loading…
Cancel
Save