diff --git a/packages/core/src/integrations/sentry/components/SdkList.tsx b/packages/core/src/integrations/sentry/components/SdkList.tsx index 461ff965..4673c6a8 100644 --- a/packages/core/src/integrations/sentry/components/SdkList.tsx +++ b/packages/core/src/integrations/sentry/components/SdkList.tsx @@ -3,10 +3,10 @@ import PlatformIcon from './PlatformIcon'; import TimeSince from './TimeSince'; function sdkToPlatform(name: string) { - if (name.indexOf('javascript') === 0) return 'javascript'; - if (name.indexOf('python') === 0) return 'python'; - if (name.indexOf('php') === 0) return 'php'; - if (name.indexOf('ruby') === 0) return 'ruby'; + if (name.indexOf('javascript') !== -1) return 'javascript'; + if (name.indexOf('python') !== -1) return 'python'; + if (name.indexOf('php') !== -1) return 'php'; + if (name.indexOf('ruby') !== -1) return 'ruby'; return 'unknown'; }