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!

map tooltip: timer is red for red countries

Blue Mouse2a1f277f121c
diff --git a/src/pages/Project/View/components/InteractiveMap.jsx b/src/pages/Project/View/components/InteractiveMap.jsx
index 271ff712b..ec078aee3 100644
--- a/src/pages/Project/View/components/InteractiveMap.jsx
+++ b/src/pages/Project/View/components/InteractiveMap.jsx
@@ -92,7 +92,12 @@ const InteractiveMap = ({ data, onClickCountry, total }) => {
{isTrafficTab ? t('project.unique') : t('dashboard.pageLoad')}
:
 
- <strong className='dark:text-indigo-400'>
+ <strong
+ className={cx({
+ 'dark:text-indigo-400': isTrafficTab || dataHover.data < 5,
+ 'dark:text-red-400': !isTrafficTab && dataHover.data >= 5,
+ })}
+ >
{isTrafficTab ? dataHover.data : getStringFromTime(getTimeFromSeconds(dataHover.data), true)}
</strong>
</div>