Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/contexts/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { Safe4626Helper, Safe4626CollateralHelper } from '@/typechain-types';
import { Safe4626Helper__factory, Safe4626CollateralHelper__factory } from '@/typechain-types/factories';
import { isUserRejected, checkTermsOfUseStatus, fetchTermsOfUseText, submitTermsOfUseSignature } from '@/utils';

/** When false, terms are not fetched or verified and the UI is never blocked on them. */
const TERMS_OF_USE_ENFORCED = false;

type DiscoveredWallet = {
info: {
uuid: string;
Expand Down Expand Up @@ -518,6 +521,12 @@ export const AppContextProvider = ({ children }: { children: ReactNode }) => {
}, [currentNetwork]);

const checkTermsStatus = useCallback(async () => {

if (!TERMS_OF_USE_ENFORCED) {
setIsTermsSigned(true);
return;
}

if (!address || !currentNetwork) {
setIsTermsSigned(null);
return;
Expand Down
Loading