diff --git a/src/components/platformIdentifier.tsx b/src/components/platformIdentifier.tsx index 552d9323edc79..b8401133b1be3 100644 --- a/src/components/platformIdentifier.tsx +++ b/src/components/platformIdentifier.tsx @@ -9,5 +9,10 @@ type Props = { export function PlatformIdentifier({name, platform}: Props) { const [currentPlatform] = usePlatform(platform); + + if (!currentPlatform) { + return null; + } + return {formatCaseStyle(currentPlatform.caseStyle, name)}; }