We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b9574a + a79d98a commit 59f8e2cCopy full SHA for 59f8e2c
src/utils/props.js
@@ -94,4 +94,5 @@ const configurablePropDefaultFnName = makePropConfigurable({}, '', '').default.n
94
95
// Detect wether the given value is currently a function
96
// and isn't the props default function
97
-export const hasPropFunction = fn => isFunction(fn) && fn.name !== configurablePropDefaultFnName
+export const hasPropFunction = fn =>
98
+ isFunction(fn) && fn.name && fn.name !== configurablePropDefaultFnName
0 commit comments