Unverified Commit 956bc2f3 authored by hiro's avatar hiro Committed by GitHub

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: 's avatarJJ Kasper <jj@jjsweb.site>
parent 1dd6eeb5
...@@ -112,7 +112,7 @@ const ElementsForm = () => { ...@@ -112,7 +112,7 @@ const ElementsForm = () => {
if (error) { if (error) {
setPayment({ status: 'error' }) setPayment({ status: 'error' })
setErrorMessage(error.message ?? 'An unknown error occured') setErrorMessage(error.message ?? 'An unknown error occurred')
} else if (paymentIntent) { } else if (paymentIntent) {
setPayment(paymentIntent) setPayment(paymentIntent)
} }
...@@ -148,7 +148,9 @@ const ElementsForm = () => { ...@@ -148,7 +148,9 @@ const ElementsForm = () => {
onChange={(e) => { onChange={(e) => {
if (e.error) { if (e.error) {
setPayment({ status: 'error' }) setPayment({ status: 'error' })
setErrorMessage(e.error.message ?? 'An unknown error occured') setErrorMessage(
e.error.message ?? 'An unknown error occurred'
)
} }
}} }}
/> />
......
...@@ -2,7 +2,7 @@ import React from 'react' ...@@ -2,7 +2,7 @@ import React from 'react'
export default class ErrorInRenderPage extends React.Component { export default class ErrorInRenderPage extends React.Component {
render() { render() {
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
throw new Error('An Expected error occured') throw new Error('An Expected error occurred')
} }
return <div /> return <div />
} }
......
...@@ -6,6 +6,6 @@ export default class ErrorInRenderPage extends React.Component { ...@@ -6,6 +6,6 @@ export default class ErrorInRenderPage extends React.Component {
// eslint-disable-next-line react/require-render-return // eslint-disable-next-line react/require-render-return
render() { render() {
throw new Error('An Expected error occured') throw new Error('An Expected error occurred')
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment