Display filename instead of frequency when no frequency value available

This commit is contained in:
Chrystian Huot 2020-08-23 10:19:09 -04:00
parent 4b8e860b04
commit 225ac72631

View file

@ -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 = '';
}