Skip to content

Commit

Permalink
Fix SDK List
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Nov 23, 2023
1 parent b3b367f commit 347d7d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/src/integrations/sentry/components/SdkList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit 347d7d0

Please sign in to comment.