Merge pull request #242 from UniversityRadioYork/mstratford-offair

Fix unknown timelord when off air
This commit is contained in:
Matthew Stratford 2021-09-08 20:40:52 +01:00 committed by GitHub
commit 4ba9e3f7d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ export function Timelord() {
];
let sourceName = "Unknown";
if (studio > 0 && studio < sourceNames.length) {
if (studio > 0 && studio <= sourceNames.length) {
sourceName = sourceNames[studio - 1];
}