hide not regsitered docs from DocumentSelectorForProvingScreen (#1619)

This commit is contained in:
Seshanth.S
2026-01-21 00:17:15 +05:30
committed by GitHub
parent d5b843db5b
commit e32a2a3cea
2 changed files with 4 additions and 1 deletions

View File

@@ -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);

View File

@@ -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