[BUG] - Incorrect conditional rendering logic to display profile stats
Description
The issue with the short-circuit operator (&&) in React when dealing with zero value, using an example.
true && "works?" -> works?
0 && "works?" -> 0 -> which gets rendered on UI.
Fix: use double bang operator to convert value to either true or false
Screenshots
Additional information
No response
To reduce notifications, issues are locked until they are https://github.com/EddieHubCommunity/LinkFree/labels/%F0%9F%8F%81%20status%3A%20ready%20for%20dev and to be assigned. You can learn more in our contributing guide https://github.com/EddieHubCommunity/LinkFree/blob/main/CONTRIBUTING.md
The issue has been unlocked and is now ready for dev. If you would like to work on this issue, you can comment to have it assigned to you. You can learn more in our contributing guide https://github.com/EddieHubCommunity/BioDrop/blob/main/CONTRIBUTING.md
Thank you for the great issue!
This fix "Fix: use double bang operator to convert value to either true or false" will work. I can work on this issue. pls assign to me
This fix "Fix: use double bang operator to convert value to either true or false" will work. I can work on this issue. pls assign to me
@ZeeMonk-pixel I will assign this to you