mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
hide not regsitered docs from DocumentSelectorForProvingScreen (#1619)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user