Skip to content

Commit 7c2a295

Browse files
author
Akos Kitta
committed
Fixed bug when checking if a core is installed
`startsWith` was incorrect: `arduino:samd` Vs. `arduino:samd_beta` Signed-off-by: Akos Kitta <[email protected]>
1 parent c579667 commit 7c2a295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ide-extension/src/node/boards-service-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class BoardsServiceImpl implements BoardsService {
159159

160160
let items = resp.getSearchOutputList().map(item => {
161161
let installedVersion: string | undefined;
162-
const matchingPlatform = installedPlatforms.find(ip => ip.getId().startsWith(`${item.getId()}`));
162+
const matchingPlatform = installedPlatforms.find(ip => ip.getId() === item.getId());
163163
if (!!matchingPlatform) {
164164
installedVersion = matchingPlatform.getInstalled();
165165
}

0 commit comments

Comments
 (0)