File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments