fix: Generic fixes

This commit is contained in:
Blazebrain 2024-12-20 10:36:54 +01:00
parent ac1c198940
commit 25a83930f9

View file

@ -70,6 +70,8 @@ class SeedVerificationStepView extends StatelessWidget {
(option) { (option) {
return GestureDetector( return GestureDetector(
onTap: () async { onTap: () async {
if (walletSeedViewModel.wrongEntries > 2) return;
final isCorrectWord = walletSeedViewModel.isChosenWordCorrect(option); final isCorrectWord = walletSeedViewModel.isChosenWordCorrect(option);
final isSecondWrongEntry = walletSeedViewModel.wrongEntries >= 2; final isSecondWrongEntry = walletSeedViewModel.wrongEntries >= 2;
if (!isCorrectWord) { if (!isCorrectWord) {