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() { render() {
const { account, currency, ...props } = this.props const { account, currency, device, ...props } = this.props
const cur = account ? account.currency : currency const cur = account ? account.currency : currency
const Icon = cur ? getCryptoCurrencyIcon(cur) : null const Icon = cur ? getCryptoCurrencyIcon(cur) : null
return ( return (
<DeviceInteraction <DeviceInteraction
key={device ? device.path : null}
shouldRenderRetry shouldRenderRetry
steps={[ steps={[
{ {

3
src/components/GenuineCheck.js

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

Loading…
Cancel
Save