GitHub Actions commited on
Commit
958c204
·
1 Parent(s): 2563acb

Sync from GitHub repo

Browse files
Files changed (1) hide show
  1. 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
- // Absolute fallback if both cache and initial list fail
1328
- openToast("No random sentences available.", "warning");
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
  }