Added state to disable Continue button

This commit is contained in:
Zhenya Goroh
2024-10-05 21:29:08 +03:00
parent f4b69d78ef
commit d39d520349

View File

@@ -586,7 +586,7 @@ export default function DownloadPage() {
</Button> </Button>
<Button <Button
onClick={() => continueFlow()} onClick={() => continueFlow()}
disabled={selectedPlatform === "Unsupported"} disabled={selectedPlatform === "Unsupported" || !selectedPlatform}
> >
{(flowIndex === 1 && platform === "MacOS") || flowIndex === 2 {(flowIndex === 1 && platform === "MacOS") || flowIndex === 2
? "Download 🥳" ? "Download 🥳"