Skip to content

Commit

Permalink
ref(ts): Fix null typing errors in platformIdentifier (#7360)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanpurkhiser committed Jul 7, 2023
1 parent 20b24a8 commit feee8f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/platformIdentifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ type Props = {

export function PlatformIdentifier({name, platform}: Props) {
const [currentPlatform] = usePlatform(platform);

if (!currentPlatform) {
return null;
}

return <code>{formatCaseStyle(currentPlatform.caseStyle, name)}</code>;
}

1 comment on commit feee8f0

@vercel
Copy link

@vercel vercel bot commented on feee8f0 Jul 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

docs.sentry.io
sentry-docs.sentry.dev
sentry-docs-git-master.sentry.dev

Please sign in to comment.