Fix Userplugincard error

This commit is contained in:
thororen1234 2024-10-02 12:32:40 -04:00
parent fbc42076eb
commit a92bae80e0
3 changed files with 58 additions and 58 deletions

View file

@ -27,7 +27,7 @@ export function StockPluginsCard({ totalStockPlugins, enabledStockPlugins }) {
}
export function UserPluginsCard({ totalUserPlugins, enabledUserPlugins }) {
if (totalUserPlugins <= 1)
if (totalUserPlugins === 0)
return (
<div className="vc-plugin-stats vc-stockplugins-stats-card">
<div className="vc-plugin-stats-card-container ">
@ -41,7 +41,7 @@ export function UserPluginsCard({ totalUserPlugins, enabledUserPlugins }) {
/>
}
>
{(tooltipProps) => (
{tooltipProps => (
<span style={{ display: "inline", position: "relative" }}>
<Text variant="heading-xl/bold" {...tooltipProps}>
{totalUserPlugins}