Skip to content

Commit

Permalink
changing definition for const 'isPlaygroundUnsupported' to make playg…
Browse files Browse the repository at this point in the history
…round toggle button visible

Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
  • Loading branch information
BigSamu committed Nov 21, 2023
1 parent 24592a6 commit 27f18e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-docs/src/components/guide_section/guide_section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const GuideSection: FunctionComponent<GuideSection> = ({

const renderPlaygroundToggle = () => {
const isPlaygroundUnsupported =
typeof window !== 'undefined' && typeof document !== 'undefined';
typeof window === 'undefined' || typeof document === 'undefined';

if (!isPlaygroundUnsupported && !!playground) {
return (
Expand Down

0 comments on commit 27f18e1

Please sign in to comment.