Browse Source

Fix error to show during DeviceConnect step

master
Gaëtan Renaudeau 7 years ago
parent
commit
e99467da43
  1. 11
      src/components/DeviceConnect/index.js

11
src/components/DeviceConnect/index.js

@ -149,10 +149,7 @@ type Props = {
deviceSelected: ?Device,
onChangeDevice: Device => void,
t: T,
errors: ?{
genuineError: ?Error,
dashboardError: ?Error,
},
error: ?Error,
}
const emitChangeDevice = props => {
@ -192,7 +189,7 @@ class DeviceConnect extends PureComponent<Props> {
genuineCheckStatus,
withGenuineCheck,
appOpened,
errors,
error,
currency,
t,
onChangeDevice,
@ -308,11 +305,11 @@ class DeviceConnect extends PureComponent<Props> {
</Step>
)}
{errors && (errors.genuineError || errors.dashboardError) ? (
{error ? (
<Info hasErrors>
<IconInfoCircle size={12} />
<Box shrink selectable>
<TranslatedError error={errors.genuineError || errors.dashboardError} />
<TranslatedError error={error} />
</Box>
</Info>
) : null}

Loading…
Cancel
Save