From b9c9db31fd994304903c3a1b01aac554e3024838 Mon Sep 17 00:00:00 2001 From: Steve Desmond Date: Tue, 10 Dec 2024 16:55:37 -0500 Subject: [PATCH] Handle front-end when no MAC address is provided --- App/AccessPoint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/App/AccessPoint.ts b/App/AccessPoint.ts index a7a9e748..0cde0b5d 100644 --- a/App/AccessPoint.ts +++ b/App/AccessPoint.ts @@ -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 {