Skip to content

Commit daa39db

Browse files
committed
feat: better way to track complex token
1 parent 3b61796 commit daa39db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/injector/injector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ export class Injector {
789789
}
790790

791791
private getTokenName(token: InstanceToken): string {
792-
return token.toString().includes(' ')
792+
return typeof token === 'function'
793793
? token.toString().split(' ')[1]
794794
: token.toString();
795795
}

0 commit comments

Comments
 (0)