fix getActiveVisitors return type
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user