diff --git a/client/src/components/Utilities/GetCoordinates/GetCoordinates.tsx b/client/src/components/Utilities/GetCoordinates/GetCoordinates.tsx index a5eda92..a7cfe57 100644 --- a/client/src/components/Utilities/GetCoordinates/GetCoordinates.tsx +++ b/client/src/components/Utilities/GetCoordinates/GetCoordinates.tsx @@ -108,13 +108,18 @@ const GetCoordinates: React.FC = () => { const [isLoading, setIsLoading] = useState(false); const [responseWarnings, setResponseWarnings] = useState([]); + const genomicInputComplete = + genomicInputType === GenomicInputType.GENE + ? gene !== "" && selectedTranscript !== "" + : txAc !== ""; + // programming horror const inputComplete = - (inputType === "genomic_coords" && - gene !== "" && + (inputType === TxElementInputType.gc && + genomicInputComplete && chromosome !== "" && (start !== "" || end !== "")) || - (inputType === "exon_coords" && + (inputType === TxElementInputType.ec && txAc !== "" && (exonStart !== "" || exonEnd !== ""));