From f2a0330655f42a4851ed9ad08ec14ce69c31a153 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Tue, 27 Jan 2026 12:06:45 +0000 Subject: [PATCH] fix(QuoteOptions): ensure authorDetails is set to true for all users during migration --- src/features/quote/options/QuoteOptions.jsx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/features/quote/options/QuoteOptions.jsx b/src/features/quote/options/QuoteOptions.jsx index 275a2c5b..155f1d3d 100644 --- a/src/features/quote/options/QuoteOptions.jsx +++ b/src/features/quote/options/QuoteOptions.jsx @@ -31,6 +31,14 @@ const QuoteOptions = ({ currentSubSection, onSubSectionChange, sectionName }) => } return type; }); + + // Migration: Force authorDetails on for users upgrading from older versions + useState(() => { + if (localStorage.getItem('authorDetails') === null) { + localStorage.setItem('authorDetails', 'true'); + } + }); + const [customQuote, setCustomQuote] = useState(getCustom()); const handleCustomQuote = (e, text, index, type) => { @@ -167,18 +175,14 @@ const QuoteOptions = ({ currentSubSection, onSubSectionChange, sectionName }) =>