🐛 Fixed visibility of the post history feature

We had side stepped the existing checks of lexical and the feature flag when
checking if a published post was sent as an email. This takes into account the
existing checks to make sure the feature isn't leaked without the flag
This commit is contained in:
Fabien "egg" O'Carroll 2023-05-12 17:22:30 -04:00 committed by Fabien 'egg' O'Carroll
parent e41d9fedd8
commit ecb90c88ca

View File

@ -150,7 +150,7 @@ export default class GhPostSettingsMenu extends Component {
&& this.post.emailOnly === false;
if (this.post.isPublished === true) {
showPostHistory = this.post.hasEmail === false;
return showPostHistory && this.post.hasEmail === false;
}
return showPostHistory;