Skip to content

Commit c467e7c

Browse files
authored
Merge pull request #2332 from NativeScript/raikov/fix-emails
Fixed email registration process
2 parents 1edfd23 + 2cc0ed5 commit c467e7c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/commands/post-install.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ export class PostInstallCliCommand extends PostInstallCommand {
2929
if (this.shouldAskForEmail()) {
3030
this.logger.out("Leave your e-mail address here to subscribe for NativeScript newsletter and product updates, tips and tricks:");
3131
let email = this.getEmail("(press Enter for blank)").wait();
32-
this.$userSettingsService.saveSetting("EMAIL_REGISTERED", true).wait();
32+
this.$userSettingsService.saveSetting("EMAIL_REGISTERED", true).wait();
3333
this.sendEmail(email);
3434
}
35-
3635
}).future<void>()();
3736
}
3837

@@ -56,7 +55,7 @@ export class PostInstallCliCommand extends PostInstallCommand {
5655
};
5756

5857
let result = this.$prompter.get([schema]).wait();
59-
return result.inputString;
58+
return result.inputEmail;
6059
}).future<string>()();
6160
}
6261

0 commit comments

Comments
 (0)