Skip to content

Commit

Permalink
Fix logic to display message for one product
Browse files Browse the repository at this point in the history
  • Loading branch information
IanRamosC committed Feb 2, 2024
1 parent 2434a9e commit f0f0a41
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ export default function useConnectionWatcher() {
);

const needsUserConnectionMessage =
productsThatRequiresUserConnection.length > 1
? __(
productsThatRequiresUserConnection.length === 1
? oneProductMessage
: __(
'Some products need a user connection to WordPress.com to be able to work.',
'jetpack-my-jetpack'
)
: oneProductMessage;
);

useEffect( () => {
if ( ! isSiteConnected || requiresUserConnection ) {
Expand Down

0 comments on commit f0f0a41

Please sign in to comment.