Skip to content

Commit

Permalink
Fix typo on "occured" to "occurred" (#26709)
Browse files Browse the repository at this point in the history
* fix: typo occured -> occurred

* fix: typo occured -> occurred

* fix: typo occured -> occurred

* fix: typo occured -> occurred

* lint-fix


Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
hiro0218 and ijjk authored Jun 29, 2021
1 parent 1dd6eeb commit 956bc2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions examples/with-stripe-typescript/components/ElementsForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const ElementsForm = () => {

if (error) {
setPayment({ status: 'error' })
setErrorMessage(error.message ?? 'An unknown error occured')
setErrorMessage(error.message ?? 'An unknown error occurred')
} else if (paymentIntent) {
setPayment(paymentIntent)
}
Expand Down Expand Up @@ -148,7 +148,9 @@ const ElementsForm = () => {
onChange={(e) => {
if (e.error) {
setPayment({ status: 'error' })
setErrorMessage(e.error.message ?? 'An unknown error occured')
setErrorMessage(
e.error.message ?? 'An unknown error occurred'
)
}
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
export default class ErrorInRenderPage extends React.Component {
render() {
if (typeof window !== 'undefined') {
throw new Error('An Expected error occured')
throw new Error('An Expected error occurred')
}
return <div />
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/production/pages/error-in-ssr-render.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export default class ErrorInRenderPage extends React.Component {

// eslint-disable-next-line react/require-render-return
render() {
throw new Error('An Expected error occured')
throw new Error('An Expected error occurred')
}
}

0 comments on commit 956bc2f

Please sign in to comment.