File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ const HomeView = ({}: Props) => {
57
57
} else if ( landingOrHome === "landing" ) {
58
58
tempParams = [ "/landing" ] ;
59
59
setIsLanding ( true ) ;
60
- } else {
61
- setIsLanding ( false ) ;
62
60
}
63
61
// loops through each segment and validates it individually
64
62
for ( let i = 0 ; i < URLSegments . length ; i ++ ) {
Original file line number Diff line number Diff line change @@ -54,12 +54,10 @@ const LandingPage = ({ setIsLanding }: Props) => {
54
54
55
55
useEffect ( ( ) => {
56
56
setCurrentPathContext ( currentPath ) ;
57
- if ( firstRender ) {
58
- setFirstRender ( false ) ;
59
- } else if (
57
+ if (
60
58
// If current path is 'complete', transition to HomeView
61
- currentPath . endsWith ( "/gamedev" ) ||
62
- currentPath . endsWith ( "/webdev" )
59
+ currentPath . includes ( "/gamedev" ) ||
60
+ currentPath . includes ( "/webdev" )
63
61
) {
64
62
setCurrBG ( pixelFadeBG ) ;
65
63
setIsActivePage ( false ) ;
You can’t perform that action at this time.
0 commit comments