mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-20 05:02:37 +08:00
spelling: anonymous
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
parent
3bfb2b673f
commit
753cf0c0e6
@ -30,7 +30,7 @@ export function extractFunctionName(func: Function, propName: string): string {
|
||||
const { name } = func;
|
||||
|
||||
// Comparison with the prop name is to discard inferred function names.
|
||||
if (name !== '' && name !== 'anoynymous' && name !== propName) {
|
||||
if (name !== '' && name !== 'anonymous' && name !== propName) {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user