Skip to content

Commit

Permalink
bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arodidev committed Aug 7, 2024
1 parent 5ea58c4 commit 6664e86
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const IndividualResultValue: React.FC<{ panel: Record<string, any> }> = ({ panel

return (
<div className={classNames(styles['individual-results-value'], additionalClassname)}>
<p>{`${value} ${valueQuantity.unit}`}</p>
<p>{`${value} ${valueQuantity?.unit || ''}`}</p>
</div>
);
};
Expand All @@ -77,6 +77,7 @@ const IndividualResultsTable: React.FC<IndividualResultsTableProps> = ({ panels,
const isDesktop = layout === 'small-desktop' || layout === 'large-desktop';
const headerTitle = t('individualResults', 'Individual Results');

// console.log(panels);
const tableHeaders = [
{ key: 'testName', header: t('testName', 'Test Name') },
{
Expand All @@ -88,6 +89,8 @@ const IndividualResultsTable: React.FC<IndividualResultsTableProps> = ({ panels,

function extractReferenceRangeFromPanel(panel) {
//will add typings
if (!panel.referenceRange?.length) return '--';

const { high, low } = panel.referenceRange[0];
if (!high || !low) return '--';

Expand Down

0 comments on commit 6664e86

Please sign in to comment.