Skip to content

Commit

Permalink
fix: get coordinates not working for transcript
Browse files Browse the repository at this point in the history
  • Loading branch information
katiestahl committed Sep 19, 2024
1 parent 3869c1f commit e8d24bb
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,18 @@ const GetCoordinates: React.FC = () => {
const [isLoading, setIsLoading] = useState<boolean>(false);
const [responseWarnings, setResponseWarnings] = useState<string[]>([]);

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 !== ""));

Expand Down

0 comments on commit e8d24bb

Please sign in to comment.