Dun-sin / Whisper

A fun Application to have a random chat with people safely
https://whisper.favour.dev/
MIT License
390 stars 367 forks source link

[OTHER] use the logical AND operator to display the message when the user chooses to show a bad word #667

Open Dun-sin opened 3 months ago

Dun-sin commented 3 months ago

What would you like to share?

https://github.com/Dun-sin/Whisper/blob/dbec99c68f63c606647ea2cef1d458a72ae83b1b/client/src/components/Chat.jsx#L531-L533

change that code to:

badwordChoices[id] === 'show' && message 

Additional information

This issue depends on #663

github-actions[bot] commented 3 months ago

To reduce notifications, issues are locked until they are valid/approved and to be assigned. In the meantime read the contributing guidelines -> https://github.com/Dun-sin/Whisper/blob/main/CONTRIBUTING.md