📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
fixed selfhosted create project
Blue Mouse43a87e69eb0f
diff --git a/src/pages/Dashboard/Dashboard.jsx b/src/pages/Dashboard/Dashboard.jsxindex d23bfa1c8..0cc78745b 100644--- a/src/pages/Dashboard/Dashboard.jsx+++ b/src/pages/Dashboard/Dashboard.jsx@@ -20,6 +20,7 @@ import Loader from 'ui/Loader'import { ActivePin, InactivePin } from 'ui/Pin'import PulsatingCircle from 'ui/icons/PulsatingCircle'import routes from 'routes'+import { isSelfhosted } from 'redux/constants'const ProjectCart = ({name, url, created, active, overall, t, language, live,@@ -119,7 +120,7 @@ const Dashboard = ({ projects, isLoading, error, user }) => {const history = useHistory()const onNewProject = () => {- if (user.isActive) {+ if (user.isActive || isSelfhosted) {history.push(routes.new_project)} else {setShowActivateEmailModal(true)diff --git a/src/pages/Project/Settings/ProjectSettings.jsx b/src/pages/Project/Settings/ProjectSettings.jsxindex dc6ae2632..78d3ca9b5 100644--- a/src/pages/Project/Settings/ProjectSettings.jsx+++ b/src/pages/Project/Settings/ProjectSettings.jsx@@ -11,6 +11,7 @@ import PropTypes from 'prop-types'import Title from 'components/Title'import { isAuthenticated } from '../../../hoc/protected'+import { isSelfhosted } from 'redux/constants'import { createProject, updateProject, deleteProject } from 'api'import Input from 'ui/Input'import Button from 'ui/Button'@@ -45,7 +46,7 @@ const ProjectSettings = ({const [projectSaving, setProjectSaving] = useState(false)useEffect(() => {- if (!user.isActive) {+ if (!user.isActive && !isSelfhosted) {showError(t('project.settings.verify'))history.push(routes.dashboard)}