From fe1a9dcffb284c846e0ae8b3a65d204964e1c047 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri <1247834+brunobar79@users.noreply.github.com> Date: Tue, 25 Jul 2023 20:55:37 +0200 Subject: [PATCH] fix seed quiz crash (#780) --- .github/workflows/build.yml | 2 +- .../popup/components/SeedVerifyQuiz/SeedVerifyQuiz.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d0ec298779..a16816d700 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -73,7 +73,7 @@ jobs: needs: [build] env: DISPLAY: :0 - VITEST_SEGFAULT_RETRY: 3 + VITEST_SEGFAULT_RETRY: 4 steps: - uses: actions/checkout@v3 - uses: ./.github/actions/testSetup diff --git a/src/entries/popup/components/SeedVerifyQuiz/SeedVerifyQuiz.tsx b/src/entries/popup/components/SeedVerifyQuiz/SeedVerifyQuiz.tsx index dc4560bd9d..5c9c01ca90 100644 --- a/src/entries/popup/components/SeedVerifyQuiz/SeedVerifyQuiz.tsx +++ b/src/entries/popup/components/SeedVerifyQuiz/SeedVerifyQuiz.tsx @@ -205,11 +205,11 @@ export function SeedVerifyQuiz({ // Validate const seedWords = seed.split(' '); if ( - seedWords[3] === selectedWords[0].word && + seedWords[3] === selectedWords[0]?.word && selectedWords[0].index === 3 && - seedWords[7] === selectedWords[1].word && + seedWords[7] === selectedWords[1]?.word && selectedWords[1].index === 7 && - seedWords[11] === selectedWords[2].word && + seedWords[11] === selectedWords[2]?.word && selectedWords[2].index === 11 ) { setValidated(true);