Skip to content

Commit fdf856c

Browse files
author
Marco Crespi
committed
fix(adapter): Fix issue with no address
1 parent b113d0b commit fdf856c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/models/Adapter.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/models/Adapter.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/Adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export abstract class Adapter extends TypedEmitter<AdapterEvents> {
5454
this.modblue = modblue;
5555
this.id = id;
5656
this._name = name || `hci${id.replace('hci', '')}`;
57-
this._address = address.toLowerCase();
57+
this._address = address?.toLowerCase();
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)