From e32a2a3ceaf85a430501d81b249da271ac7ff467 Mon Sep 17 00:00:00 2001 From: "Seshanth.S" <35675963+seshanthS@users.noreply.github.com> Date: Wed, 21 Jan 2026 00:17:15 +0530 Subject: [PATCH] hide not regsitered docs from DocumentSelectorForProvingScreen (#1619) --- .../screens/verification/DocumentSelectorForProvingScreen.tsx | 1 + app/src/screens/verification/ProvingScreenRouter.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/screens/verification/DocumentSelectorForProvingScreen.tsx b/app/src/screens/verification/DocumentSelectorForProvingScreen.tsx index 140bb3d79..75d339274 100644 --- a/app/src/screens/verification/DocumentSelectorForProvingScreen.tsx +++ b/app/src/screens/verification/DocumentSelectorForProvingScreen.tsx @@ -219,6 +219,7 @@ const DocumentSelectorForProvingScreen: React.FC = () => { const documents = useMemo(() => { return documentCatalog.documents + .filter(metadata => metadata.isRegistered) .map(metadata => { const docData = allDocuments[metadata.id]; const baseState = determineDocumentState(metadata, docData?.data); diff --git a/app/src/screens/verification/ProvingScreenRouter.tsx b/app/src/screens/verification/ProvingScreenRouter.tsx index 058297d20..dcd17d6d7 100644 --- a/app/src/screens/verification/ProvingScreenRouter.tsx +++ b/app/src/screens/verification/ProvingScreenRouter.tsx @@ -89,7 +89,9 @@ const ProvingScreenRouter: React.FC = () => { // Determine if we should skip the selector const shouldSkip = skipDocumentSelector || - (skipDocumentSelectorIfSingle && validCount === 1); + (skipDocumentSelectorIfSingle && + validCount === 1 && + firstValidDoc.isRegistered); if (shouldSkip) { // Auto-select and navigate to Prove