Skip to content

Commit

Permalink
website: fix MinimumVersionWrapper logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SlicedSilver committed Oct 4, 2023
1 parent e31f6da commit 79dc6a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/components/MinimumVersionWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function MinimumVersionWrapper(props: React.PropsWithChildren<Min
const currentVersion = versions && versions.length > 0 ? versions[0] : '';
const version = (preferredVersion?.name ?? currentVersion ?? 'current');

const canShowExamples = version === 'current' || parseFloat(version) > props.version;
const canShowExamples = version === 'current' || parseFloat(version) >= props.version;

if (canShowExamples) {
return props.children as React.ReactElement;
Expand Down

0 comments on commit 79dc6a1

Please sign in to comment.