diff --git a/frontend/src/hooks/useCriteriaCard.ts b/frontend/src/hooks/useCriteriaCard.ts index c7b9a02..b209514 100644 --- a/frontend/src/hooks/useCriteriaCard.ts +++ b/frontend/src/hooks/useCriteriaCard.ts @@ -69,10 +69,8 @@ export const criteriaCardPool: CriteriaCard[] = [ ]; const getCardUrl = (card?: CriteriaCard, language?: string) => - card && language - ? `https://turingmachine.info/images/criteriacards/${language}/TM_GameCards_${language}-${( - "0" + card.id - ).slice(-2)}.png` + card?.id && language + ? `https://turingmachine.info/images/criteriacards/${language}/TM_GameCards_${language}-${("0" + card.id).slice(-2)}.png` : ""; export const useCriteriaCard = (verifier: Verifier, index: number) => { @@ -98,11 +96,11 @@ export const useCriteriaCard = (verifier: Verifier, index: number) => { const dispatch = useAppDispatch(); const toggleCriteria = (criteria: number) => { - if (!card) return; + if ( !card ) return; const criteriaIndex = card.irrelevantCriteria.indexOf(criteria); - if (criteriaIndex === -1) { + if ( criteriaIndex === -1 ) { setCard({ ...card, irrelevantCriteria: [...card.irrelevantCriteria, criteria], @@ -125,10 +123,10 @@ export const useCriteriaCard = (verifier: Verifier, index: number) => { }, [card]); const toggleLetter = (verifier: Verifier) => { - if (!letters) return; + if ( !letters ) return; setLetters( letters.map((letter: Letter) => { - if (letter.letter === verifier) { + if ( letter.letter === verifier ) { return { ...letter, isIrrelevant: !letter.isIrrelevant, diff --git a/frontend/src/parsing/util.ts b/frontend/src/parsing/util.ts index 9bab548..0254899 100644 --- a/frontend/src/parsing/util.ts +++ b/frontend/src/parsing/util.ts @@ -35,7 +35,7 @@ export const CHECK_CARDS = [ ], [ 202, 207, 216, 221, 228, 236, 247, 255, 263, 268, 277, 287, 294, 303, 311, - 316, 324, 330, 335, 340, 347, 352, 357, 362, 372, 377, 382, 391, 393, 399, + 316, 324, 330, 335, 340, 347, 352, 357, 362, 372, 377, 382, 389, 393, 399, 404, 409, 414, 421, 430, 435, 441, 449, 458, 463, 471, 476, 482, 486, 492, 498, 504, 509, 518, 527, 533, 540, 547, 553, 562, 567, 573, 579, 585, 589, 593, 597, 605, 610, 615, 621, 629, 633, 637, 641, 647, 651, 656, 662, 667,