diff --git a/packages/sections/src/variant/GWASCredibleSets/Body.tsx b/packages/sections/src/variant/GWASCredibleSets/Body.tsx index d8648641f..b531c9e71 100644 --- a/packages/sections/src/variant/GWASCredibleSets/Body.tsx +++ b/packages/sections/src/variant/GWASCredibleSets/Body.tsx @@ -166,9 +166,9 @@ function getColumns({ id, referenceAllele, alternateAllele }: getColumnsType) { }, sortable: true, renderCell: ({ locus }) => - locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability.toFixed(3) : naLabel, + locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability.toPrecision(3) : naLabel, exportValue: ({ locus }) => - locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability.toFixed(3) : naLabel, + locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability : naLabel, }, { id: "finemappingMethod", diff --git a/packages/sections/src/variant/QTLCredibleSets/Body.tsx b/packages/sections/src/variant/QTLCredibleSets/Body.tsx index c9f6d71ea..3ee30a624 100644 --- a/packages/sections/src/variant/QTLCredibleSets/Body.tsx +++ b/packages/sections/src/variant/QTLCredibleSets/Body.tsx @@ -169,9 +169,9 @@ function getColumns({ id, referenceAllele, alternateAllele }: getColumnsType) { ), renderCell: ({ locus }) => - locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability.toFixed(3) : naLabel, + locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability.toPrecision(3) : naLabel, exportValue: ({ locus }) => - locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability.toFixed(3) : naLabel, + locus.rows.length > 0 ? locus?.rows[0]?.posteriorProbability : naLabel, }, { id: "confidence",