fix getActiveVisitors return type

This commit is contained in:
Francis Cao committed 2024-02-19 11:18:50 -08:00
1 parent 117cb6168c
commit 5468ca5dd3
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ export function ActiveUsers({
const count = useMemo(() => {
if (websiteId) {
return data?.[0]?.x || 0;
return data?.x || 0;
}
return value !== undefined ? value : 0;