Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

bug fix

daniel31x1336be3d8772d9
diff --git a/apps/web/components/ToggleDarkMode.tsx b/apps/web/components/ToggleDarkMode.tsx
index d73e8b3b..e4d330a8 100644
--- a/apps/web/components/ToggleDarkMode.tsx
+++ b/apps/web/components/ToggleDarkMode.tsx
@@ -25,6 +25,8 @@ export default function ToggleDarkMode({ hideInMobile, align }: Props) {
});
};
+ if (!data?.theme) return <></>;
+
return (
<TooltipProvider>
<Tooltip>
diff --git a/apps/web/package.json b/apps/web/package.json
index 61718d22..79f64ed3 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -1,6 +1,6 @@
{
"name": "@linkwarden/web",
- "version": "v2.12.1",
+ "version": "v2.12.2",
"main": "index.js",
"repository": "https://github.com/linkwarden/linkwarden.git",
"author": "Daniel31X13 <[email protected]>",
diff --git a/apps/web/pages/public/collections/[id]/index.tsx b/apps/web/pages/public/collections/[id]/index.tsx
index 72d6de71..107768d5 100644
--- a/apps/web/pages/public/collections/[id]/index.tsx
+++ b/apps/web/pages/public/collections/[id]/index.tsx
@@ -104,8 +104,8 @@ export default function PublicCollections() {
className="h-96"
style={{
backgroundImage: `linear-gradient(${collection?.color}30 10%, ${
- user?.theme === "dark" ? "#262626" : "#f3f4f6"
- } 13rem, ${user?.theme === "dark" ? "#171717" : "#ffffff"} 100%)`,
+ user?.theme === "light" ? "#f3f4f6" : "#262626"
+ } 13rem, ${user?.theme === "light" ? "#ffffff" : "#171717"} 100%)`,
}}
>
{collection && (