diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx index ad197283e3325..4b7ba2a4aa625 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx @@ -128,8 +128,7 @@ class DashVideoPress extends Component { className="jp-dash-item__is-inactive" noToggle={ ! hasConnectedOwner } overrideContent={ - ! hasConnectedOwner && - ! isOffline && ( + ! hasConnectedOwner && ! isOffline ? ( - ) + ) : null } >

diff --git a/projects/plugins/jetpack/changelog/fix-warning-videopress-card b/projects/plugins/jetpack/changelog/fix-warning-videopress-card new file mode 100644 index 0000000000000..ad8b712394e2d --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-warning-videopress-card @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Dashboard: avoid React warning when loading the VideoPress card.