fix tour/tutorial on signup

This commit is contained in:
Matteo Pagliazzi
2015-11-28 14:07:33 +01:00
parent 90d7f1f6a8
commit 786845effd
+2 -3
View File
@@ -544,15 +544,14 @@ function _populateDefaultsForNewUser (user) {
if (user.registeredThrough === 'habitica-web') {
taskTypes = ['habits', 'dailys', 'todos', 'rewards', 'tags'];
_.each(iterableFlags.tutorial.common, (section) => {
_.each(iterableFlags.tutorial.common, (val, section) => {
user.flags.tutorial.common[section] = true;
});
} else {
taskTypes = ['todos', 'tags'];
user.flags.showTour = false;
_.each(iterableFlags.tour, (section) => {
_.each(iterableFlags.tour, (val, section) => {
user.flags.tour[section] = -2;
});
}