File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
examples/with-stripe-typescript/components
test/integration/production/pages Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
22export 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 }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments