diff --git a/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.jsx b/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.jsx index bed6fe78d6..5eb1517db2 100644 --- a/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.jsx +++ b/services/web/frontend/js/features/editor-navigation-toolbar/components/toolbar-header.jsx @@ -39,8 +39,6 @@ const ToolbarHeader = React.memo(function ToolbarHeader({ }) { const { t } = useTranslation() const shouldDisplayPublishButton = hasPublishPermissions && PublishButton - const shouldDisplayTrackChangesButton = - trackChangesVisible && !isRestrictedTokenMember return (
- {shouldDisplayTrackChangesButton && ( + {trackChangesVisible && ( ', function () { screen.getByText('Review') }) - it('is not displayed when "isRestrictedTokenMember" prop is set to true', function () { - const props = { - ...defaultProps, - isRestrictedTokenMember: true, - } - renderWithEditorContext() - expect(screen.queryByText('Review')).to.not.exist - }) - it('is not displayed when "trackChangesVisible" prop is set to false', function () { const props = { ...defaultProps,