From 8377aa606c4ebecc08091f233c4f4eebf2e35fb9 Mon Sep 17 00:00:00 2001 From: JongunJeong <skeep194@knu.ac.kr> Date: Tue, 10 Sep 2024 01:29:11 +0900 Subject: [PATCH] fix: invalid yakuman --- src/screens/InformationInputScreen.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/InformationInputScreen.tsx b/src/screens/InformationInputScreen.tsx index 2c131e9..2fd6f44 100644 --- a/src/screens/InformationInputScreen.tsx +++ b/src/screens/InformationInputScreen.tsx @@ -136,7 +136,7 @@ export const InformationInputScreen = ({ false, ); const calc = result.calc(); - if (calc.error || calc.han == 0) { + if (calc.error || (calc.han == 0 && calc.yakuman == 0)) { navigation.navigate('ResultFail'); } else { navigation.navigate('Result', calc);