mirror of
https://github.com/pupperpowell/bibdle.git
synced 2026-02-04 10:54:44 -05:00
fixed some epistle bugs with firstLetter, maybe. and wording
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user