fix: occured → occurred (2)

This commit is contained in:
Julien Fontanet 2018-12-06 18:53:35 +01:00
parent e47525b60b
commit 99dc64e8bb

View File

@ -13,12 +13,12 @@ React.createElement = (createElement => {
fontWeight: 'bold',
}}
>
an error has occured
an error has occurred
</p>
)
const wrapRender = render => {
function patchedRender () {
function patchedRender() {
try {
return render.apply(this, arguments)
} catch (error) {
@ -31,7 +31,7 @@ React.createElement = (createElement => {
return patchedRender
}
return function (Component) {
return function(Component) {
if (isFunction(Component)) {
const patched = Component._patched
if (patched) {