Fix Aadhaar docType when handled false
All checks were successful
build-and-deploy / build-deploy (push) Successful in 31s

This commit is contained in:
androidlover5842
2026-01-31 10:19:17 +05:30
parent 9299d22c5b
commit 366673c690

View File

@@ -287,7 +287,9 @@ class DocumentExtractionService(
}
private fun computeDocType(results: Map<String, String>, handled: Boolean): String {
if (!handled) return "GENERAL"
if (!handled && !(isYes(results["hasAadhar"]) || isYes(results["hasUidai"]))) {
return "GENERAL"
}
return when {
isYes(results["hasCourt"]) ||
isYes(results["hasHighCourt"]) ||