Fix copy to "Post excerpt" in newsletter settings (#20344)

MOM-209

Currently if the "Show post excerpt inline" is on we show "Subtitle" in
newsletter settings, it should always be "Post excerpt" to avoid
confusion.
This commit is contained in:
Peter Zimon 2024-06-06 08:40:52 +02:00 committed by GitHub
parent a7a1166310
commit 909f2fa028
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,7 +104,6 @@ const Sidebar: React.FC<{
const [selectedTab, setSelectedTab] = useState('generalSettings');
const hasEmailCustomization = useFeatureFlag('emailCustomization');
const hasNewsletterExcerpt = useFeatureFlag('newsletterExcerpt');
const hasEditorSubtitle = useFeatureFlag('editorExcerpt');
const {localSettings} = useSettingGroup();
const [siteTitle] = getSettingValues(localSettings, ['title']) as string[];
const handleError = useHandleError();
@ -423,7 +422,7 @@ const Sidebar: React.FC<{
<Toggle
checked={newsletter.show_excerpt}
direction="rtl"
label={hasEditorSubtitle ? 'Subtitle' : 'Post excerpt'}
label="Post excerpt"
onChange={e => updateNewsletter({show_excerpt: e.target.checked})}
/>
}