Skip to content

Commit 496fb5c

Browse files
committed
T
1 parent 6741ef9 commit 496fb5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sentry/static/sentry/app/utils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ export const buildTeamId = id => `team:${id}`;
218218
/**
219219
* Removes the organization / project scope prefix on feature names.
220220
*/
221-
export function descopeFeatureName(feature: string): string {
222-
if (typeof feature.match !== 'function') {
221+
export function descopeFeatureName<T>(feature: T): T | string {
222+
if (typeof feature !== 'string') {
223223
return feature;
224224
}
225225

0 commit comments

Comments
 (0)