Skip to content

Diya 🔥 fix(bs): Fixed Blue Square Issues#5277

Merged
one-community merged 1 commit into
developmentfrom
Diya_Fix_BSIssues
May 16, 2026
Merged

Diya 🔥 fix(bs): Fixed Blue Square Issues#5277
one-community merged 1 commit into
developmentfrom
Diya_Fix_BSIssues

Conversation

@DiyaWadhwani
Copy link
Copy Markdown
Contributor

Description

Fixes Blue Square visibility bug where the private/public toggle was inverted, causing blue square data to show when it should be hidden and vice versa.

Related PRS (if any):

This frontend PR is related to the backend PR #2218

Main changes explained:

  • Updated BlueSquaresTable.jsx to fix inverted isPrivate condition — changed !isPrivate to isPrivate so the "Blue Square Info is Private" message shows correctly when the toggle is set to private

How to test:

  1. Check out current branch
  2. Run npm install and npm start
  3. Log in as a non-admin user and navigate to another user's profile
  4. Toggle blue squares to private — verify the message "Blue Square Info is Private" appears
  5. Toggle blue squares to public — verify the blue squares are visible
  6. Verify this works correctly in dark mode

Screenshots or videos of changes:

Note:

The condition was inverted — !isPrivate was used where isPrivate was needed, causing the privacy message to show when data was public and the data to show when it was private.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 16, 2026

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit 642d4b1
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/6a07ed5886ac7f00085a7d15
😎 Deploy Preview https://deploy-preview-5277--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@DiyaWadhwani DiyaWadhwani changed the title fix(bs): Fixed Blue Square Issues Diya fix(bs): Fixed Blue Square Issues May 16, 2026
@sonarqubecloud
Copy link
Copy Markdown

@one-community one-community changed the title Diya fix(bs): Fixed Blue Square Issues Diya 🔥 fix(bs): Fixed Blue Square Issues May 16, 2026
@one-community one-community merged commit 59d9fad into development May 16, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants