1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

minor updates to comments for clarity

This commit is contained in:
rr-bw
2024-09-07 13:03:15 -07:00
parent e190ca48c7
commit 4f893e0769
2 changed files with 10 additions and 5 deletions

View File

@@ -364,7 +364,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
private async webOnInit(): Promise<void> {
this.activatedRoute.queryParams.pipe(first(), takeUntil(this.destroy$)).subscribe((qParams) => {
// If there is an query parameter called 'org', set previousUrl to `/create-organization?org=paramValue`
// If there is a parameter called 'org', set previousUrl to `/create-organization?org=<paramValue>`
if (qParams.org != null) {
const route = this.router.createUrlTree(["create-organization"], {
queryParams: { plan: qParams.org },
@@ -373,9 +373,8 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
}
/**
* If there is a query parameter called 'sponsorshipToken', that means they are coming
* from an email for sponsoring a families organization. If so, then set the prevousUrl
* to `/setup/families-for-enterprise?token=paramValue`
* If there is a parameter called 'sponsorshipToken', they are coming from an email for sponsoring a families organization.
* Therefore set the prevousUrl to `/setup/families-for-enterprise?token=<paramValue>`
*/
if (qParams.sponsorshipToken != null) {
const route = this.router.createUrlTree(["setup/families-for-enterprise"], {