diff --git a/client/my-sites/site-settings/delete-site/index.jsx b/client/my-sites/site-settings/delete-site/index.jsx
index b7d13e3fb87ff..979df73b2f5eb 100644
--- a/client/my-sites/site-settings/delete-site/index.jsx
+++ b/client/my-sites/site-settings/delete-site/index.jsx
@@ -19,7 +19,7 @@ var HeaderCake = require( 'components/header-cake' ),
Button = require( 'components/button' ),
Dialog = require( 'components/dialog' ),
config = require( 'config' ),
- Gridicon = require ( 'components/gridicon' ),
+ Gridicon = require( 'components/gridicon' ),
SiteListActions = require( 'lib/sites-list/actions' );
module.exports = React.createClass( {
@@ -45,6 +45,27 @@ module.exports = React.createClass( {
this.props.sites.off( 'change', this._updateSite );
},
+ renderNotice: function() {
+ var site = this.state.site;
+
+ if ( ! site ) {
+ return null;
+ }
+
+ return (
+
+ { this.translate( '{{strong}}%(domain)s{{/strong}} will be unavailable in the future.', {
+ components: {
+ strong:
+ },
+ args: {
+ domain: site.domain
+ }
+ } ) }
+
+ );
+ },
+
render: function() {
var site = this.state.site,
adminURL = site.options && site.options.admin_url ? site.options.admin_url : '',
@@ -113,16 +134,7 @@ module.exports = React.createClass( {
{ strings.deleteSite }
-
- { this.translate( '{{strong}}%(domain)s{{/strong}} will be unavailable in the future.', {
- components: {
- strong:
- },
- args: {
- domain: site.domain
- }
- } ) }
-
+ { this.renderNotice() }
{ this.translate( 'These items will be deleted' ) }