fixed some epistle bugs with firstLetter, maybe. and wording

This commit is contained in:
George Powell
2026-01-28 15:15:40 -05:00
parent 0ee3d8a4d0
commit 55a9fd59ea
2 changed files with 5 additions and 4 deletions

View File

@@ -199,7 +199,7 @@
{statsData.averageGuesses} {statsData.averageGuesses}
</div> </div>
<div class="text-sm sm:text-sm opacity-90 mt-1"> <div class="text-sm sm:text-sm opacity-90 mt-1">
People guessed correctly after {statsData.averageGuesses} People solved after {statsData.averageGuesses}
{statsData.averageGuesses === 1 ? "guess" : "guesses"} on {statsData.averageGuesses === 1 ? "guess" : "guesses"} on
average average
</div> </div>

View File

@@ -93,10 +93,11 @@
const sectionMatch = book.section === correctBook.section; const sectionMatch = book.section === correctBook.section;
const adjacent = isAdjacent(bookId, correctBookId); const adjacent = isAdjacent(bookId, correctBookId);
// Special case: if correct book is Epistles + starts with "1", // Special case: if correct book is in the Epistles + starts with "1",
// any guess starting with "1" counts as first letter match // any guess starting with "1" counts as first letter match
const correctIsEpistlesWithNumber = const correctIsEpistlesWithNumber =
correctBook.section === "Epistles" && correctBook.name[0] === "1"; correctBook.section === "Pauline Epistles" &&
correctBook.name[0] === "1";
const guessStartsWithNumber = book.name[0] === "1"; const guessStartsWithNumber = book.name[0] === "1";
const firstLetterMatch = const firstLetterMatch =
@@ -203,7 +204,7 @@
// Apply same first letter logic as in submitGuess // Apply same first letter logic as in submitGuess
const correctIsEpistlesWithNumber = const correctIsEpistlesWithNumber =
correctBook.section === "Epistles" && correctBook.section === "Pauline Epistles" &&
correctBook.name[0] === "1"; correctBook.name[0] === "1";
const guessStartsWithNumber = book.name[0] === "1"; const guessStartsWithNumber = book.name[0] === "1";