mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 20:57:17 +01:00
fix getActiveVisitors return type
This commit is contained in:
parent
117cb6168c
commit
5468ca5dd3
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue