Skip to content

Commit

Permalink
Ensure the badge says Private if the user has deactivated while in v1…
Browse files Browse the repository at this point in the history
… coming soon mode
  • Loading branch information
ramonjd committed Nov 21, 2020
1 parent 88b5367 commit a6a633c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/blocks/site/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ class Site extends React.Component {
{ /* eslint-disable wpcalypso/jsx-gridicon-size */ }
{ this.props.site.is_private && ( // Coming Soon v1
<span className="site__badge site__badge-private">
{ this.props.site.is_coming_soon || isPrivateAndUnlaunched
{ ( this.props.site.is_coming_soon || isPrivateAndUnlaunched ) &&
! isAtomicAndEditingToolkitDeactivated
? translate( 'Coming Soon' )
: translate( 'Private' ) }
</span>
Expand Down

0 comments on commit a6a633c

Please sign in to comment.