Skip to content

Commit 9549f08

Browse files
committed
feat: simplify lowercase mapping comparison
1 parent c828db9 commit 9549f08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/pages/create-account/connect-hardware/account-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ class AccountList extends Component {
7474
HardwareDeviceNames.trezor,
7575
HardwareDeviceNames.oneKey,
7676
]
77-
.map((name) => name.toLowerCase())
78-
.includes(device.toLowerCase());
77+
// TODO: check if we really need to compare lowercased values
78+
.some((name) => name.toLowerCase() === device.toLowerCase());
7979
return (
8080
<div className="hw-connect">
8181
<h3 className="hw-connect__unlock-title">

0 commit comments

Comments
 (0)