From ed961daa439c92f1130a9edbdbdc847f680a61ad Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Mon, 9 Aug 2021 22:06:19 +0100 Subject: [PATCH] Fix unknown timelord when off air --- src/navbar/timelord.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/navbar/timelord.tsx b/src/navbar/timelord.tsx index cb81091..0f03135 100644 --- a/src/navbar/timelord.tsx +++ b/src/navbar/timelord.tsx @@ -24,7 +24,7 @@ export function Timelord() { ]; let sourceName = "Unknown"; - if (studio > 0 && studio < sourceNames.length) { + if (studio > 0 && studio <= sourceNames.length) { sourceName = sourceNames[studio - 1]; }