Skip to content

Commit 956bc2f

Browse files
hiro0218ijjk
andauthored
Fix typo on "occured" to "occurred" (#26709)
* 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>
1 parent 1dd6eeb commit 956bc2f

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

examples/with-stripe-typescript/components/ElementsForm.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const ElementsForm = () => {
112112

113113
if (error) {
114114
setPayment({ status: 'error' })
115-
setErrorMessage(error.message ?? 'An unknown error occured')
115+
setErrorMessage(error.message ?? 'An unknown error occurred')
116116
} else if (paymentIntent) {
117117
setPayment(paymentIntent)
118118
}
@@ -148,7 +148,9 @@ const ElementsForm = () => {
148148
onChange={(e) => {
149149
if (e.error) {
150150
setPayment({ status: 'error' })
151-
setErrorMessage(e.error.message ?? 'An unknown error occured')
151+
setErrorMessage(
152+
e.error.message ?? 'An unknown error occurred'
153+
)
152154
}
153155
}}
154156
/>

test/integration/production/pages/error-in-browser-render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
export default class ErrorInRenderPage extends React.Component {
33
render() {
44
if (typeof window !== 'undefined') {
5-
throw new Error('An Expected error occured')
5+
throw new Error('An Expected error occurred')
66
}
77
return <div />
88
}

test/integration/production/pages/error-in-ssr-render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export default class ErrorInRenderPage extends React.Component {
66

77
// eslint-disable-next-line react/require-render-return
88
render() {
9-
throw new Error('An Expected error occured')
9+
throw new Error('An Expected error occurred')
1010
}
1111
}

0 commit comments

Comments
 (0)