Skip to content

Commit

Permalink
chore: enable tou at timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Dec 3, 2024
1 parent 4640f11 commit 11e524d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/LoginModal/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ const LoginModal: React.FC<LoginModalProps> = ({
isOpen,
showActionButtons,
}) => {
const shouldShowAllTou = Date.now() >= 1733238000000;
const [, setSessionId] = useSessionIdKeyCache();
const { keys, setAccountData } = useAppContext();
const { publicKeyHashHex } = keys || {};
Expand All @@ -92,8 +93,8 @@ const LoginModal: React.FC<LoginModalProps> = ({
});
const [showSelection, setShowSelection] = useState<boolean>(false);
const requiredTou = useMemo(
() => (API_BASE_URL.includes("staging") ? { privacy: tou.privacy } : tou),
[tou],
() => (shouldShowAllTou ? { privacy: tou.privacy } : tou),
[tou, shouldShowAllTou],
);

const { data: providers, isLoading: isLoadingProviders } = useQuery<string[]>(
Expand Down Expand Up @@ -146,7 +147,7 @@ const LoginModal: React.FC<LoginModalProps> = ({
return (
<div className="text-left flex flex-col gap-4">
<h1 className="text-5xl uppercase">Tournament Consent</h1>
{API_BASE_URL.includes("staging") ? null : (
{shouldShowAllTou ? null : (
<>
{/**
* Read the Rules
Expand Down

0 comments on commit 11e524d

Please sign in to comment.