diff --git a/components/metrics/ActiveUsers.js b/components/metrics/ActiveUsers.js index 6b7c4779..0ab266d3 100644 --- a/components/metrics/ActiveUsers.js +++ b/components/metrics/ActiveUsers.js @@ -5,7 +5,7 @@ import useFetch from 'hooks/useFetch'; import Dot from 'components/common/Dot'; import styles from './ActiveUsers.module.css'; -export default function ActiveUsers({ websiteId, className, value, interval = 600000 }) { +export default function ActiveUsers({ websiteId, className, value, interval = 60000 }) { const url = websiteId ? `/websites/${websiteId}/active` : null; const { data } = useFetch(url, { interval, diff --git a/components/settings/WebsiteSettings.js b/components/settings/WebsiteSettings.js index f044bd68..80bd1f60 100644 --- a/components/settings/WebsiteSettings.js +++ b/components/settings/WebsiteSettings.js @@ -46,7 +46,7 @@ export default function WebsiteSettings() { icon={} size="small" tooltip={} - tooltipId={`button-share-${row.id}`} + tooltipId={`button-share-${row.websiteUuid}`} onClick={() => setShowUrl(row)} /> )} @@ -56,42 +56,46 @@ export default function WebsiteSettings() { tooltip={ } - tooltipId={`button-code-${row.id}`} + tooltipId={`button-code-${row.websiteUuid}`} onClick={() => setShowCode(row)} />