diff --git a/frontend/src/shared-file-view-text.js b/frontend/src/shared-file-view-text.js index 5ce1224946..6692ffd9e7 100644 --- a/frontend/src/shared-file-view-text.js +++ b/frontend/src/shared-file-view-text.js @@ -20,7 +20,7 @@ const FileContent = ({ lineWrapping }) => { }; const SharedFileViewText = () => { - let [lineWrapping, setLineWrapping] = useState(localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || false); + let [lineWrapping, setLineWrapping] = useState(localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || true); const updateLineWrapping = (newLineWrapping) => { setLineWrapping(newLineWrapping); diff --git a/frontend/src/view-file-text.js b/frontend/src/view-file-text.js index d65f79a16d..c71049f963 100644 --- a/frontend/src/view-file-text.js +++ b/frontend/src/view-file-text.js @@ -49,7 +49,7 @@ class ViewFileText extends React.Component { needSave: false, isSaving: false, participants: [], - lineWrapping: localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || false, + lineWrapping: localStorage.getItem('sf_txt_file_line_wrapping') === 'true' || true, }; this.onSave = this.onSave.bind(this); this.isParticipant = false;