Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

hide if value compare 0 or undefiend

kruzhambus1121e039e720
diff --git a/src/pages/Project/View/ViewProject.helpers.tsx b/src/pages/Project/View/ViewProject.helpers.tsx
index cdb1e9f63..907bac04c 100644
--- a/src/pages/Project/View/ViewProject.helpers.tsx
+++ b/src/pages/Project/View/ViewProject.helpers.tsx
@@ -826,7 +826,7 @@ const getSettingsPerf = (
const xDataValueCompare = timeFormat === TimeFormat['24-hour'] ? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(dayjs(compareChart?.x[index]).toDate()) : d3.timeFormat(tbsFormatMapperTooltip[timeBucket])(dayjs(compareChart?.x[index]).toDate())
const xDataValue = timeFormat === TimeFormat['24-hour'] ? d3.timeFormat(tbsFormatMapperTooltip24h[timeBucket])(x) : d3.timeFormat(tbsFormatMapperTooltip[timeBucket])(x)
- const valueCompare = getStringFromTime(getTimeFromSeconds(getValueForTooltipPerfomance(compareChart, id, index)), true)
+ const valueCompare = getValueForTooltipPerfomance(compareChart, id, index)
if (_includes(perfomanceChartCompare, id)) {
return ''
@@ -846,7 +846,7 @@ const getSettingsPerf = (
</p>
${valueCompare ? `<p>
<span>${xDataValueCompare}</span> -
- <span>${valueCompare}</span>
+ <span>${getStringFromTime(getTimeFromSeconds(valueCompare), true)}</span>
</p>` : ''}
</li>
`