mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
remove staleness redirect (#1575)
This commit is contained in:
@@ -44,7 +44,6 @@ import {
|
||||
truncateAddress,
|
||||
WalletAddressModal,
|
||||
} from '@/components/proof-request';
|
||||
import { useProofDisclosureStalenessCheck } from '@/hooks/useProofDisclosureStalenessCheck';
|
||||
import { useSelfAppData } from '@/hooks/useSelfAppData';
|
||||
import type { RootStackParamList } from '@/navigation';
|
||||
import { usePassport } from '@/providers/passportDataProvider';
|
||||
@@ -120,9 +119,6 @@ const DocumentSelectorForProvingScreen: React.FC = () => {
|
||||
const { logoSource, url, formattedUserId, disclosureItems } =
|
||||
useSelfAppData(selfApp);
|
||||
|
||||
// Check for stale data and navigate to Home if needed
|
||||
useProofDisclosureStalenessCheck(selfApp, disclosureItems, navigation);
|
||||
|
||||
const [documentCatalog, setDocumentCatalog] = useState<DocumentCatalog>({
|
||||
documents: [],
|
||||
});
|
||||
|
||||
@@ -38,7 +38,6 @@ import {
|
||||
truncateAddress,
|
||||
WalletAddressModal,
|
||||
} from '@/components/proof-request';
|
||||
import { useProofDisclosureStalenessCheck } from '@/hooks/useProofDisclosureStalenessCheck';
|
||||
import { useSelfAppData } from '@/hooks/useSelfAppData';
|
||||
import { buttonTap } from '@/integrations/haptics';
|
||||
import type { RootStackParamList } from '@/navigation';
|
||||
@@ -73,12 +72,6 @@ const ProveScreen: React.FC = () => {
|
||||
const { logoSource, url, formattedUserId, disclosureItems } =
|
||||
useSelfAppData(selectedApp);
|
||||
|
||||
// Check for stale data and navigate to Home if needed
|
||||
useProofDisclosureStalenessCheck(
|
||||
selectedApp,
|
||||
disclosureItems,
|
||||
navigation as NativeStackNavigationProp<RootStackParamList>,
|
||||
);
|
||||
const selectedAppRef = useRef<typeof selectedApp>(null);
|
||||
const processedSessionsRef = useRef<Set<string>>(new Set());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user