Skip to content

Commit 8e65c55

Browse files
committed
Fix analytics is enabled while in dev
1 parent 2557e6b commit 8e65c55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dashboard/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (s Server) StartServer() (string, utils.ControlChan) {
3636
os.Exit(1) // TODO: propagate error instead?
3737
}
3838
isDevModeWithAnalytics := os.Getenv("HD_DEV_ANALYTICS") == "true"
39-
enableAnalytics := !s.NoTracking || isDevModeWithAnalytics
39+
enableAnalytics := (!s.NoTracking && s.Version != "0.0.0") || isDevModeWithAnalytics
4040
data.StatusInfo = &subproc.StatusInfo{
4141
CurVer: s.Version,
4242
Analytics: enableAnalytics,

0 commit comments

Comments
 (0)