docs: fix spelling and grammar (#13862)
Fixed various spelling errors and grammatical issues across multiple .mdx documentation files.
This commit is contained in:
1 parent
dbf8fb9bda
commit
799b57c396
47 files changed
+80
-80
No files matched your search
@@ -137,7 +137,7 @@ export const highlights = [
|
||||
password,
|
||||
})
|
||||
} catch (error) {
|
||||
alert(`An error occured while logging in: ${error}`)
|
||||
alert(`An error occurred while logging in: ${error}`)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ export const fetchHighlights = [
|
||||
password,
|
||||
})
|
||||
} catch (error) {
|
||||
alert(`An error occured while logging in: ${error}`)
|
||||
alert(`An error occurred while logging in: ${error}`)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ Learn how to install and configure the JS SDK in the [JS SDK documentation](../.
|
||||
|
||||
## How to Implement the Register Customer Flow
|
||||
|
||||
An example implemetation of the registration flow in a storefront:
|
||||
An example implementation of the registration flow in a storefront:
|
||||
|
||||
<CodeTabs group="store-request">
|
||||
<CodeTab label="React" value="react">
|
||||
@@ -95,7 +95,7 @@ export const highlights = [
|
||||
const fetchError = error as FetchError
|
||||
|
||||
if (fetchError.statusText !== "Unauthorized" || fetchError.message !== "Identity with email already exists") {
|
||||
alert(`An error occured while creating account: ${fetchError}`)
|
||||
alert(`An error occurred while creating account: ${fetchError}`)
|
||||
return
|
||||
}
|
||||
// another identity (for example, admin user)
|
||||
@@ -105,7 +105,7 @@ export const highlights = [
|
||||
email,
|
||||
password,
|
||||
}).catch((e) => {
|
||||
alert(`An error occured while creating account: ${e}`)
|
||||
alert(`An error occurred while creating account: ${e}`)
|
||||
}))
|
||||
|
||||
if (!loginResponse) {
|
||||
@@ -206,7 +206,7 @@ export const fetchHighlights = [
|
||||
const fetchError = error as FetchError
|
||||
|
||||
if (fetchError.statusText !== "Unauthorized" || fetchError.message !== "Identity with email already exists") {
|
||||
alert(`An error occured while creating account: ${fetchError}`)
|
||||
alert(`An error occurred while creating account: ${fetchError}`)
|
||||
return
|
||||
}
|
||||
// another identity (for example, admin user)
|
||||
@@ -216,7 +216,7 @@ export const fetchHighlights = [
|
||||
email,
|
||||
password,
|
||||
}).catch((e) => {
|
||||
alert(`An error occured while creating account: ${e}`)
|
||||
alert(`An error occurred while creating account: ${e}`)
|
||||
}))
|
||||
|
||||
if (!loginResponse) {
|
||||
|
||||
Reference in new issue
Block a user