Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Feb 15, 2023
1 parent ece8062 commit eaf3ee0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,9 @@ const codonZoomThreshold = -2
const codonPad =15*zoomFactor;

const product = feature.notes ? feature.notes.product : "";
let betterName = product ? product : feature.name;
const altName = betterName == feature.name ? "" : feature.name;
let betterName = feature.type =="mat_peptide" ? product : feature.name;

const altName =feature.type =="mat_peptide" ? feature.name : product;
if (betterName=="Untitled Feature") betterName=feature.type;


Expand All @@ -462,7 +463,7 @@ const codonZoomThreshold = -2
/>
<text x={x-10} y={y} textAnchor="left" fontSize="10"
>
{altName} ({betterName})
{betterName}
</text>
{
feature.codonMap.map((codon, j) => {
Expand Down

1 comment on commit eaf3ee0

@vercel
Copy link

@vercel vercel bot commented on eaf3ee0 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.