Merge pull request #297 from UniversityRadioYork/alyx-off-air

fixed wording when station off air. (#296)
This commit is contained in:
alyxbb 2024-01-03 19:59:55 +00:00 committed by GitHub
commit 537e617332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,6 @@ export function Timelord() {
if (process.env.REACT_APP_BAPSICLE_INTERFACE)
return { id: -1, name: "Unknown" };
let studio = await myradioApiRequest("/selector/studioattime", "GET", null);
const sourceNames = [
"Studio Red",
"Studio Blue",
@ -23,7 +22,7 @@ export function Timelord() {
"WebStudio",
"Unknown",
"Sine Wave",
"Off Air",
"Station is Off Air",
];
let sourceName = "Unknown";
@ -94,7 +93,7 @@ export function Timelord() {
source.id > -1 && (
<span className="source">
<span className={"studio studio" + source.id}>{source.name}</span>
&nbsp;is On Air
{source.id !== 8 ? " is On Air" : ""}
</span>
)
)}