I have the following conditional
if ( !user.userId && match.path === \'/login\' ) { component = } else if ( user.userId