Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix unstyled "0" in theme details dialog

Abdullah Attaa24447d56914
diff --git a/apps/web/src/dialogs/theme-details-dialog.tsx b/apps/web/src/dialogs/theme-details-dialog.tsx
index 6bcee74e0..33d1814dc 100644
--- a/apps/web/src/dialogs/theme-details-dialog.tsx
+++ b/apps/web/src/dialogs/theme-details-dialog.tsx
@@ -63,11 +63,11 @@ function ThemeDetailsDialog(props: ThemeDetailsDialogProps) {
<Text variant="subBody" sx={{ fontSize: "subtitle" }}>
{theme.authors.map((author) => author.name).join(", ")}
</Text>
- {theme.totalInstalls && (
+ {theme.totalInstalls && theme.totalInstalls > 0 ? (
<Text variant="subBody" sx={{ fontSize: "subtitle" }}>
{theme.totalInstalls} installs
</Text>
- )}
+ ) : null}
<Text variant="subBody" sx={{ fontSize: "subtitle" }}>
Licensed under {theme.license}
</Text>