Skip to content

Commit

Permalink
Fix unit showing id instead of symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
wniestroj committed Nov 29, 2024
1 parent c836022 commit 5a5afae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend-v2/src/features/drug/Drug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const Drug: FC = () => {
setIsEditIndex(isEdit ? index : null);
};

console.log("efficacy_experiments", efficacy_experiments);
console.log("units", units);

return (
<div style={{ display: "flex", flexDirection: "column" }}>
Expand Down Expand Up @@ -408,7 +408,9 @@ const Drug: FC = () => {
/>
) : (
<Typography>
{getValues(`efficacy_experiments.${index}.c50_unit`) ||
{units.find(
(u) => u.id === getValues(`efficacy_experiments.${index}.c50_unit`),
)?.symbol ||
"-"}
</Typography>
)}
Expand Down

0 comments on commit 5a5afae

Please sign in to comment.