Skip to content

Commit

Permalink
fix: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Mar 10, 2025
1 parent 5ded194 commit f38cc9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/neuron-ui/src/components/CellManagement/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,8 @@ export const useHardWallet = ({ wallet, t }: { wallet: State.WalletIdentity; t:
const [error, setError] = useState<ErrorCode | string | undefined>()
const isNotAvailable = useMemo(() => {
return (
error === ErrorCode.DeviceNotFound ||
error === ErrorCode.CkbAppNotFound ||
error === ErrorCode.DeviceNotMatchWallet
typeof error === 'number' &&
[ErrorCode.DeviceNotFound, ErrorCode.CkbAppNotFound, ErrorCode.DeviceNotMatchWallet].includes(error)
)
}, [error])

Expand Down

1 comment on commit f38cc9f

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 13763900934

Please sign in to comment.