From fce4bae01852ae3bd99bdf2dc6c46b684108d9dd Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Tue, 13 Dec 2022 17:33:23 -0600 Subject: [PATCH] Fix typos in website code (#9015) --- website/api/controllers/entrance/signup.js | 2 +- website/scripts/get-bug-and-pr-report.js | 8 ++++---- website/views/layouts/layout-email-newsletter.ejs | 2 +- website/views/pages/homepage.ejs | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/website/api/controllers/entrance/signup.js b/website/api/controllers/entrance/signup.js index 4256dc0917..69aaeda765 100644 --- a/website/api/controllers/entrance/signup.js +++ b/website/api/controllers/entrance/signup.js @@ -123,7 +123,7 @@ the account verification message.)`, ) .timeout(5000) .intercept(['requestFailed', 'non200Response'], (err)=>{ - // If we recieved a non-200 response from the cloud provisioner API, we'll throw a 500 error. + // If we received a non-200 response from the cloud provisioner API, we'll throw a 500 error. return new Error('When attempting to provision a new user who just signed up ('+emailAddress+'), the cloud provisioner gave a non 200 response. The incomplete user record has not been saved in the database, and the user will be asked to try signing up again. Raw response received from provisioner: '+err.stack); }) .intercept({name: 'TimeoutError'}, (err)=>{ diff --git a/website/scripts/get-bug-and-pr-report.js b/website/scripts/get-bug-and-pr-report.js index b138516f26..cec4b473ac 100644 --- a/website/scripts/get-bug-and-pr-report.js +++ b/website/scripts/get-bug-and-pr-report.js @@ -66,7 +66,7 @@ module.exports = { ).retry(); // Add the results to the allIssuesWithBugLabel array. allIssuesWithBugLabel = allIssuesWithBugLabel.concat(issuesWithBugLabel); - // If we recieved less results than we requested, we've reached the last page of the results. + // If we received less results than we requested, we've reached the last page of the results. return issuesWithBugLabel.length !== NUMBER_OF_RESULTS_REQUESTED; }, 10000); @@ -111,14 +111,14 @@ module.exports = { baseHeaders ).retry(); - // Filter the PRs we recieved from Github using the pull request's merged_at date. + // Filter the PRs we received from Github using the pull request's merged_at date. let resultsToAdd = closedPullRequests.filter((pullRequest)=>{ return threeWeeksAgo <= new Date(pullRequest.merged_at); }); // Add the filtered array of PRs to the array of all pull requests merged in the past three weeks. pullRequestsMergedInThePastThreeWeeks = pullRequestsMergedInThePastThreeWeeks.concat(resultsToAdd); - // Stop when we've recieved results from the third page. + // Stop when we've received results from the third page. return pageNumberForPaginatedResults === 3; }); @@ -165,7 +165,7 @@ module.exports = { ).retry(); // Add the results to the array of results. allOpenPullRequests = allOpenPullRequests.concat(pullRequests); - // If we recieved less results than we requested, we've reached the last page of the results. + // If we received less results than we requested, we've reached the last page of the results. return pullRequests.length !== NUMBER_OF_RESULTS_REQUESTED; }, 10000); for(let pullRequest of allOpenPullRequests) { diff --git a/website/views/layouts/layout-email-newsletter.ejs b/website/views/layouts/layout-email-newsletter.ejs index 2913d774c3..f374e01d16 100644 --- a/website/views/layouts/layout-email-newsletter.ejs +++ b/website/views/layouts/layout-email-newsletter.ejs @@ -15,7 +15,7 @@

© 2022 Fleet Device Management Inc. All trademarks, service marks, and company names are the property of their respective owners.

-

You recieved this email because you’re subscribed to the Fleet newsletter. Unsubscribe

+

You received this email because you’re subscribed to the Fleet newsletter. Unsubscribe

diff --git a/website/views/pages/homepage.ejs b/website/views/pages/homepage.ejs index 693826fa48..d64fcb68e9 100644 --- a/website/views/pages/homepage.ejs +++ b/website/views/pages/homepage.ejs @@ -307,7 +307,7 @@

Great!

-

You're all set to recieve updates on Fleet releases.

+

You're all set to receive updates on Fleet releases.