diff --git a/src/components/organisations/ExportDataButton.tsx b/src/components/organisations/ExportDataButton.tsx index b5f8fca54..9f4fc48fc 100644 --- a/src/components/organisations/ExportDataButton.tsx +++ b/src/components/organisations/ExportDataButton.tsx @@ -25,7 +25,13 @@ export default function ExportDataButton({ }: ButtonProps & Props) { const [isLoading, setIsLoading] = useState(false) + const isDisabled = simulationRecaps?.length < 3 + function handleClick() { + if (isDisabled) { + return + } + if (onClick) { onClick() } @@ -82,7 +88,12 @@ export default function ExportDataButton({ }) } return ( -