change so intro questons dont run if dev

This commit is contained in:
Robin Olsen
2026-03-12 16:58:56 +01:00
parent a51fd848d6
commit e8e8c6c134

View File

@@ -129,16 +129,16 @@ func runStartCmd(cmd *cobra.Command, args []string) error {
if err := newIntroModel().Run(); err != nil {
return returnIfUserQuit(err, "failed to run intro")
}
}
introAnswers, err := newIntroQuestionnaire().Run()
if err != nil {
return returnIfUserQuit(err, "failed to run intro questionnaire")
}
introAnswers, err := newIntroQuestionnaire().Run()
if err != nil {
return returnIfUserQuit(err, "failed to run intro questionnaire")
}
if app != nil && app.Stats != nil && introAnswers != nil {
if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil {
cmd.Printf("Failed to record intro questionnaire answers: %v\n", err)
if app != nil && app.Stats != nil && introAnswers != nil {
if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil {
cmd.Printf("Failed to record intro questionnaire answers: %v\n", err)
}
}
}