fix(email): use updated slugs

and genericize logic for easier tweaking later
This commit is contained in:
Sabe Jones
2019-02-22 15:47:24 -06:00
parent 10b69986c0
commit ea5ce64db6
2 changed files with 4 additions and 4 deletions

View File

@@ -130,9 +130,9 @@ function _setUpNewUser (user) {
const testGroup = Math.random();
if (testGroup < 0.5) {
user._ABtests.emailSplit = '20190222_welcome';
user._ABtests.welcomeEmailSplit = 'welcome-v2';
} else {
user._ABtests.emailSplit = '20190222_welcome-v2';
user._ABtests.welcomeEmailSplit = 'welcome-v2b';
}
if (user.registeredThrough === 'habitica-web') {