Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix(branding): show logo if present
Marc Seitz814da4183aa8
diff --git a/pages/settings/branding.tsx b/pages/settings/branding.tsxindex dcf298f2..d63ba99c 100644--- a/pages/settings/branding.tsx+++ b/pages/settings/branding.tsx@@ -4,6 +4,7 @@ import { useCallback, useEffect, useState } from "react";import { useTeam } from "@/context/team-context";import { PlusIcon } from "lucide-react";+import { encode } from "next-auth/jwt";import { HexColorInput, HexColorPicker } from "react-colorful";import { toast } from "sonner";import { mutate } from "swr";@@ -395,7 +396,7 @@ export default function Branding() {key={`branding-${brandColor}-${accentColor}`}name="checkout-demo"id="checkout-demo"- src={`/nav_ppreview_demo?brandColor=${encodeURIComponent(brandColor)}&accentColor=${encodeURIComponent(accentColor)}&brandLogo=${blobUrl ? encodeURIComponent(blobUrl) : ""}`}+ src={`/nav_ppreview_demo?brandColor=${encodeURIComponent(brandColor)}&accentColor=${encodeURIComponent(accentColor)}&brandLogo=${blobUrl ? encodeURIComponent(blobUrl) : logo ? encodeURIComponent(logo) : ""}`}style={{width: "1390px",height: "831px",