Skip to content

Commit ddd2cc4

Browse files
committed
syncing all branches to main
1 parent e50318b commit ddd2cc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/LandingPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const LandingPage = ({ setIsLanding }: Props) => {
2424
const navigate = useNavigate();
2525

2626
// - - - - - CONTEXT - - - - -
27-
const { setCurrentPathContext } = useContext(AuthContext);
2827
const { hueRotation, setHueDuration } = useContext(AppContext);
2928

3029
// - - - - - BG TRANSITION - - - - -
@@ -52,8 +51,9 @@ const LandingPage = ({ setIsLanding }: Props) => {
5251
// - - - - - useEffects - - - - -
5352

5453
useEffect(() => {
55-
setCurrentPathContext(currentPath);
56-
if (currentPath.includes("/gamedev") ||
54+
if (
55+
// If current path is 'complete', transition to HomeView
56+
currentPath.includes("/gamedev") ||
5757
currentPath.includes("/webdev")
5858
) {
5959
setCurrBG(pixelFadeBG);

0 commit comments

Comments
 (0)