Skip to content

Commit

Permalink
fix: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkoepke committed Dec 3, 2024
1 parent 11e524d commit ec91496
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/LoginModal/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const LoginModal: React.FC<LoginModalProps> = ({
});
const [showSelection, setShowSelection] = useState<boolean>(false);
const requiredTou = useMemo(
() => (shouldShowAllTou ? { privacy: tou.privacy } : tou),
() => (!shouldShowAllTou ? { privacy: tou.privacy } : tou),
[tou, shouldShowAllTou],
);

Expand Down Expand Up @@ -147,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>
{shouldShowAllTou ? null : (
{shouldShowAllTou ? (
<>
{/**
* Read the Rules
Expand Down Expand Up @@ -183,7 +183,7 @@ const LoginModal: React.FC<LoginModalProps> = ({
setTou={setTou}
/>
</>
)}
) : null}

{/**
* Privacy consent
Expand Down

0 comments on commit ec91496

Please sign in to comment.