diff --git a/web/modals/threads/settings/thread-settings-general-tab.react.js b/web/modals/threads/settings/thread-settings-general-tab.react.js --- a/web/modals/threads/settings/thread-settings-general-tab.react.js +++ b/web/modals/threads/settings/thread-settings-general-tab.react.js @@ -59,12 +59,11 @@ const onChangeName = React.useCallback( (event: SyntheticEvent) => { const target = event.currentTarget; + const newName = firstLine(target.value); setQueuedChanges(prevQueuedChanges => Object.freeze({ ...prevQueuedChanges, - name: firstLine( - target.value !== threadInfo.name ? target.value : undefined, - ), + name: newName !== threadInfo.name ? newName : undefined, }), ); },