We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 024429c commit a8568d4Copy full SHA for a8568d4
src/tools/applive-utils/device-search.ts
@@ -20,7 +20,7 @@ export function findDeviceByName(
20
const exact = matches.filter(
21
(m) => m.display_name.toLowerCase() === desiredPhone.toLowerCase(),
22
);
23
- if (exact) return exact;
+ if (exact.length) return exact;
24
// If no exact but multiple fuzzy, ask user
25
if (matches.length > 1) {
26
const names = matches.map((d) => d.display_name).join(", ");
0 commit comments