From 6af32741fb4145a3f3dd3b51995d3b38a6d515e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E5=9B=BD=E5=AE=87?= <841185308@qq.com> Date: Wed, 29 May 2024 17:55:15 +0800 Subject: [PATCH 1/2] fix: Get firmware version will exit the nervos app, so remove get firmware version (#3179) --- .../src/components/ImportHardware/detect-device.tsx | 10 +--------- packages/neuron-ui/src/services/remote/hardware.ts | 1 - .../neuron-ui/src/services/remote/remoteApiWrapper.ts | 1 - packages/neuron-wallet/src/controllers/api.ts | 4 ---- packages/neuron-wallet/src/controllers/hardware.ts | 10 ---------- .../neuron-wallet/src/services/hardware/hardware.ts | 1 - packages/neuron-wallet/src/services/hardware/ledger.ts | 10 ---------- 7 files changed, 1 insertion(+), 36 deletions(-) diff --git a/packages/neuron-ui/src/components/ImportHardware/detect-device.tsx b/packages/neuron-ui/src/components/ImportHardware/detect-device.tsx index 008b1ba8cf..c48ddda7f3 100644 --- a/packages/neuron-ui/src/components/ImportHardware/detect-device.tsx +++ b/packages/neuron-ui/src/components/ImportHardware/detect-device.tsx @@ -1,7 +1,7 @@ import React, { useCallback, useState } from 'react' import { useTranslation } from 'react-i18next' import Button from 'widgets/Button' -import { getDevices, getDeviceFirmwareVersion, getDeviceCkbAppVersion, connectDevice } from 'services/remote' +import { getDevices, getDeviceCkbAppVersion, connectDevice } from 'services/remote' import { isSuccessResponse, errorFormatter, useDidMount } from 'utils' import { ReactComponent as SuccessInfo } from 'widgets/Icons/SuccessInfo.svg' import { Error as ErrorIcon } from 'widgets/Icons/icon' @@ -50,7 +50,6 @@ const DetectDevice = ({ dispatch, model }: { dispatch: React.Dispatch { setError('') @@ -76,10 +75,6 @@ const DetectDevice = ({ dispatch, model }: { dispatch: React.Dispatch{productName} {errorMsg ? : null} {scanning ? : null} - {firmwareVersion && !errorMsg && !scanning ? ( - - ) : null} {appVersion ? : null}