Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 67624f0 commit a79d98aCopy full SHA for a79d98a
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