From 225ac726317c7f1883d692ea561ffb2c057720fe Mon Sep 17 00:00:00 2001 From: Chrystian Huot Date: Sun, 23 Aug 2020 10:19:09 -0400 Subject: [PATCH] Display filename instead of frequency when no frequency value available --- .../src/app/components/rdio-scanner/rdio-scanner.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/app/components/rdio-scanner/rdio-scanner.component.ts b/client/src/app/components/rdio-scanner/rdio-scanner.component.ts index 6271ed2..38337d2 100644 --- a/client/src/app/components/rdio-scanner/rdio-scanner.component.ts +++ b/client/src/app/components/rdio-scanner/rdio-scanner.component.ts @@ -877,7 +877,9 @@ export class AppRdioScannerComponent implements AfterViewInit, OnDestroy { } else { this.callError = ''; - this.callFrequency = typeof this.call.frequency === 'number' ? this.formatFrequency(this.call.frequency) : ''; + this.callFrequency = typeof this.call.frequency === 'number' + ? this.formatFrequency(this.call.frequency) + : this.call.audioName?.replace(/\..+$/, '') || ''; this.callSpike = ''; }