Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix(client): react render logic
A couple react related fixes. One fixes a console error, the other an unwanted rendered result.
Description
key={}
must be set on the rendered component (cannot be passed down and set within the component)&&
must be a conditional statement (not relying on value truthy/falsy) otherwise a0
value will be rendered!=
to fix instead of!==
because it catches bothnull
andundefined
valuesRelated Issue
N/A
Screenshots
Before / After
![Screenshot 2023-12-09 235115](https://private-user-images.githubusercontent.com/17837575/289321980-bd54fe04-c7d1-4f4f-83e8-c446b98a4689.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTk4MTcsIm5iZiI6MTczOTY5OTUxNywicGF0aCI6Ii8xNzgzNzU3NS8yODkzMjE5ODAtYmQ1NGZlMDQtYzdkMS00ZjRmLTgzZTgtYzQ0NmI5OGE0Njg5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA5NTE1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxZGVhMjBiOTlhOThhZTkzNzk4MDkyZDgxZTYyMTc3ZWVkYjU3YzcwMGNiYmZkNTJhMzZlN2YyNzc0NTQzZWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-fy_p0MnUc8K84M9Gl4cItlE5JjZUaovg7NqoZZ6ZMI)
![Screenshot 2023-12-09 235057](https://private-user-images.githubusercontent.com/17837575/289321982-c1534d84-8ed1-4176-81a5-30b94999101e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTk4MTcsIm5iZiI6MTczOTY5OTUxNywicGF0aCI6Ii8xNzgzNzU3NS8yODkzMjE5ODItYzE1MzRkODQtOGVkMS00MTc2LTgxYTUtMzBiOTQ5OTkxMDFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA5NTE1N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4YTEzNWYzMWM5MzNjNjkxMDBmZDY3YzU3MjA5MDA5ZGY3ODFlMjllMjg1NGMxZTc3OGRhNThmZDNlYTNiNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.-R663xPkOMTuOqGVz5YhFNxQSsViBHwCzOFv2P43l_Q)
Types of changes