diff --git a/package-lock.json b/package-lock.json index 26361bea..cfa7134e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.3.2", + "version": "2.3.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3ac8aa27..7db1587f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.3.2", + "version": "2.3.3", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js", diff --git a/src/firmware-updater.js b/src/firmware-updater.js index ed58322d..702af6ec 100644 --- a/src/firmware-updater.js +++ b/src/firmware-updater.js @@ -81,7 +81,6 @@ export default class FirmwareUpdater { versionsList = [...versionsList, ...versions[v]]; } }); - de this.firmwareVersionData = versionsList.find(version => version.Name.split(' ').splice(-1)[0].trim() === firmwareVersion); if (!this.firmwareVersionData) { this.updating.next({ status: this.updateStatusEnum.ERROR, err: `Can't get firmware info: couldn't find version '${firmwareVersion}' for board '${boardId}'` });