Skip to content

Commit 7377db4

Browse files
committed
fix: possible error with insights (fix #620)
1 parent 98aeb80 commit 7377db4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

generators/app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class NgxGenerator extends Generator {
5454
required: false
5555
});
5656

57-
this.insight.optOut = !this.options.analytics || process.env.DISABLE_NGX_ANALYTICS;
57+
this.insight.optOut = !this.options.analytics || Boolean(process.env.DISABLE_NGX_ANALYTICS);
5858

5959
if (this.options.raw) {
6060
this.props.ui = 'raw';

0 commit comments

Comments
 (0)