Skip to content

Commit

Permalink
Handle front-end when no MAC address is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Dec 10, 2024
1 parent 39adda3 commit b9c9db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions App/AccessPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default class AccessPoint {

label(): string {
return this.ssid
+ (this.frequency !== null ? ` @ ${this.frequency} GHz` : "")
+ (this.mac !== null ? ` (${this.mac})` : "");
+ (this.frequency ? ` @ ${this.frequency} GHz` : "")
+ (this.mac ? ` (${this.mac})` : "");
}

compareTo(other: AccessPoint): number {
Expand Down

0 comments on commit b9c9db3

Please sign in to comment.