Skip to content

Commit

Permalink
rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
joyceyan committed Nov 17, 2023
1 parent 55db514 commit 3fda70a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ export const NO_MARKER_GENES_FOR_BLOOD_DESCRIPTION =
"Cell types within Blood are closely related, so we are unable to generate high value marker genes at this time.";
export const TABLE_HEADER_GENE = "Gene";
export const TABLE_HEADER_SCORE = "Marker Score";
export const FMG_EXCLUDE_TISSUES = ["blood"];
export const TISSUES_WITHOUT_MARKER_GENES = ["blood"];
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import InfoSVG from "src/common/images/info-sign-icon.svg";
import { InfoButtonWrapper } from "src/components/common/Filter/common/style";
import { CellInfoBarProps } from "./types";
import {
FMG_EXCLUDE_TISSUES,
TISSUES_WITHOUT_MARKER_GENES,
MARKER_GENES_TOOLTIP_CONTENT,
MARKER_GENE_LABEL,
MARKER_SCORE_CELLGUIDE_LINK_TEXT,
Expand Down Expand Up @@ -77,7 +77,7 @@ function CellInfoSideBar({
const shouldShowEmptyState =
numMarkerGenes === 0 ||
cellInfoCellType.cellType.total_count < 25 ||
FMG_EXCLUDE_TISSUES.includes(tissueInfo.name);
TISSUES_WITHOUT_MARKER_GENES.includes(tissueInfo.name);

return (
<>
Expand Down Expand Up @@ -157,7 +157,7 @@ function CellInfoSideBar({
<NoMarkerGenesContainer data-testid="no-marker-genes-warning">
<NoMarkerGenesHeader>{NO_MARKER_GENES_HEADER}</NoMarkerGenesHeader>
<NoMarkerGenesDescription data-testid="no-marker-genes-description">
{FMG_EXCLUDE_TISSUES.includes(tissueInfo.name)
{TISSUES_WITHOUT_MARKER_GENES.includes(tissueInfo.name)
? NO_MARKER_GENES_FOR_BLOOD_DESCRIPTION
: cellInfoCellType.cellType.total_count < 25
? TOO_FEW_CELLS_NO_MARKER_GENES_DESCRIPTION
Expand Down

0 comments on commit 3fda70a

Please sign in to comment.