Skip to content

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

web: do not show website link if there's no homepage

Abdullah Atta124bbb6ac16b
diff --git a/apps/web/src/dialogs/theme-details-dialog.tsx b/apps/web/src/dialogs/theme-details-dialog.tsx
index 33d1814dc..1a6aaa9f8 100644
--- a/apps/web/src/dialogs/theme-details-dialog.tsx
+++ b/apps/web/src/dialogs/theme-details-dialog.tsx
@@ -72,14 +72,16 @@ function ThemeDetailsDialog(props: ThemeDetailsDialogProps) {
Licensed under {theme.license}
</Text>
<Flex sx={{ gap: 1, mt: 1 }}>
- <Link
- href={theme.homepage}
- target="_blank"
- variant="text.subBody"
- sx={{ fontSize: "subtitle", color: "accent" }}
- >
- Website
- </Link>
+ {theme.homepage && (
+ <Link
+ href={theme.homepage}
+ target="_blank"
+ variant="text.subBody"
+ sx={{ fontSize: "subtitle", color: "accent" }}
+ >
+ Website
+ </Link>
+ )}
{theme.sourceURL && (
<Link
href={theme.sourceURL}