Updated views component

This commit is contained in:
r-freeman 2023-01-26 23:50:25 +00:00
parent 90cf181681
commit b58f0a4338

View File

@ -27,7 +27,7 @@ export function Views({as: Component = 'span', slug, className, shouldUpdateView
if (shouldUpdateViews) { if (shouldUpdateViews) {
updateViews(slug).then(r => r); updateViews(slug).then(r => r);
} }
}, [slug]) }, [slug, shouldUpdateViews])
return ( return (
<Component className={className}> <Component className={className}>