diff --git a/app/lish/[did]/[publication]/dashboard/settings/GeneralSettings.tsx b/app/lish/[did]/[publication]/dashboard/settings/GeneralSettings.tsx
index cd28e40c..2cb2bed2 100644
--- a/app/lish/[did]/[publication]/dashboard/settings/GeneralSettings.tsx
+++ b/app/lish/[did]/[publication]/dashboard/settings/GeneralSettings.tsx
@@ -2,6 +2,7 @@ import { useRef } from "react";
import { Input } from "components/Input";
import { AddTiny } from "components/Icons/AddTiny";
import { DashboardContainer } from "./SettingsContent";
+import { EditTiny } from "components/Icons/EditTiny";
export function GeneralSettings(props: {
nameValue: string;
@@ -22,19 +23,29 @@ export function GeneralSettings(props: {
fileInputRef.current?.click()}
- >
- {props.iconPreview ? (
-

- ) : (
-
+
+ {props.iconPreview && (
+
fileInputRef.current?.click()}
+ >
+
+
)}
+
fileInputRef.current?.click()}
+ >
+ {props.iconPreview ? (
+

+ ) : (
+
+ )}
+
{
+ if (!record) return false;
+ if (nameValue !== (record.name || "")) return true;
+ if (descriptionValue !== (record.description || "")) return true;
+ if (iconFile !== null) return true;
+
+ let savedShowInDiscover =
+ record.preferences?.showInDiscover === undefined
+ ? true
+ : record.preferences.showInDiscover;
+ if (showInDiscover !== savedShowInDiscover) return true;
+
+ let savedShowComments =
+ record.preferences?.showComments === undefined
+ ? true
+ : record.preferences.showComments;
+ if (showComments !== savedShowComments) return true;
+
+ let savedShowMentions =
+ record.preferences?.showMentions === undefined
+ ? true
+ : record.preferences.showMentions;
+ if (showMentions !== savedShowMentions) return true;
+
+ let savedShowRecommends =
+ record.preferences?.showRecommends === undefined
+ ? true
+ : record.preferences.showRecommends;
+ if (showRecommends !== savedShowRecommends) return true;
+
+ let savedShowPrevNext =
+ record.preferences?.showPrevNext === undefined
+ ? true
+ : record.preferences.showPrevNext;
+ if (showPrevNext !== savedShowPrevNext) return true;
+
+ return false;
+ }, [
+ record,
+ nameValue,
+ descriptionValue,
+ iconFile,
+ showInDiscover,
+ showComments,
+ showMentions,
+ showRecommends,
+ showPrevNext,
+ ]);
+
return (
);