GitHub Actions
commited on
Commit
·
958c204
1
Parent(s):
2563acb
Sync from GitHub repo
Browse files- templates/arena.html +2 -2
templates/arena.html
CHANGED
|
@@ -1324,8 +1324,8 @@
|
|
| 1324 |
if (fallbackRandomTexts && fallbackRandomTexts.length > 0) {
|
| 1325 |
selectedText = fallbackRandomTexts[Math.floor(Math.random() * fallbackRandomTexts.length)];
|
| 1326 |
} else {
|
| 1327 |
-
//
|
| 1328 |
-
|
| 1329 |
return;
|
| 1330 |
}
|
| 1331 |
}
|
|
|
|
| 1324 |
if (fallbackRandomTexts && fallbackRandomTexts.length > 0) {
|
| 1325 |
selectedText = fallbackRandomTexts[Math.floor(Math.random() * fallbackRandomTexts.length)];
|
| 1326 |
} else {
|
| 1327 |
+
// If fallback list is also empty, do nothing. Log an error.
|
| 1328 |
+
console.error("Both cached sentences and fallback sentences are unavailable.");
|
| 1329 |
return;
|
| 1330 |
}
|
| 1331 |
}
|