From fb049ad1da4d8b7e66f6d980dd101740feddca29 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 29 Jun 2021 12:11:28 +0900 Subject: [PATCH 1/5] fix: typo occured -> occurred --- examples/with-stripe-typescript/components/ElementsForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-stripe-typescript/components/ElementsForm.tsx b/examples/with-stripe-typescript/components/ElementsForm.tsx index 8a4a486331744..bfec0691ca549 100644 --- a/examples/with-stripe-typescript/components/ElementsForm.tsx +++ b/examples/with-stripe-typescript/components/ElementsForm.tsx @@ -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) } From 54558c801b13e8aa89d5b64ca9458228288676be Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 29 Jun 2021 12:12:02 +0900 Subject: [PATCH 2/5] fix: typo occured -> occurred --- examples/with-stripe-typescript/components/ElementsForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-stripe-typescript/components/ElementsForm.tsx b/examples/with-stripe-typescript/components/ElementsForm.tsx index bfec0691ca549..fa521888ea3f1 100644 --- a/examples/with-stripe-typescript/components/ElementsForm.tsx +++ b/examples/with-stripe-typescript/components/ElementsForm.tsx @@ -148,7 +148,7 @@ 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') } }} /> From df6beb6bff4c3f742d131ba44d16bcafb6854366 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 29 Jun 2021 12:12:06 +0900 Subject: [PATCH 3/5] fix: typo occured -> occurred --- test/integration/production/pages/error-in-browser-render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/production/pages/error-in-browser-render.js b/test/integration/production/pages/error-in-browser-render.js index a4bbdffe3c769..0a5a4ce2d19e0 100644 --- a/test/integration/production/pages/error-in-browser-render.js +++ b/test/integration/production/pages/error-in-browser-render.js @@ -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
} From 46f2429fbaef18bea9c06a9e49fe56c3129a39b6 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 29 Jun 2021 12:12:09 +0900 Subject: [PATCH 4/5] fix: typo occured -> occurred --- test/integration/production/pages/error-in-ssr-render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/production/pages/error-in-ssr-render.js b/test/integration/production/pages/error-in-ssr-render.js index 863abf80fb1d8..b0fcb7706a865 100644 --- a/test/integration/production/pages/error-in-ssr-render.js +++ b/test/integration/production/pages/error-in-ssr-render.js @@ -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') } } From ed1cb4e7135cd073c41e2b15cf47417713b6d061 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 28 Jun 2021 22:26:57 -0500 Subject: [PATCH 5/5] lint-fix --- examples/with-stripe-typescript/components/ElementsForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/with-stripe-typescript/components/ElementsForm.tsx b/examples/with-stripe-typescript/components/ElementsForm.tsx index fa521888ea3f1..d438cc830f321 100644 --- a/examples/with-stripe-typescript/components/ElementsForm.tsx +++ b/examples/with-stripe-typescript/components/ElementsForm.tsx @@ -148,7 +148,9 @@ const ElementsForm = () => { onChange={(e) => { if (e.error) { setPayment({ status: 'error' }) - setErrorMessage(e.error.message ?? 'An unknown error occurred') + setErrorMessage( + e.error.message ?? 'An unknown error occurred' + ) } }} />