diff --git a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts index 4d8aa9f76..1f968e087 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts @@ -51,7 +51,7 @@ export class ViewSwitchComponent { async #switchToRedactedView() { const unapprovedSuggestionsWarning = this._userPreferenceService.getUnapprovedSuggestionsWarning(); - if (unapprovedSuggestionsWarning) { + if (!unapprovedSuggestionsWarning) { const suggestions = (await this._fileDataService.annotations).filter(a => a.isSuggestion); if (suggestions.length) { const displaySuggestionsInPreview = this._userPreferenceService.getDisplaySuggestionsInPreview();