Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app): supervisedBy unassigned resolved #18

Merged
merged 2 commits into from
Dec 13, 2023
Merged

fix(app): supervisedBy unassigned resolved #18

merged 2 commits into from
Dec 13, 2023

Conversation

mxmlnwbr
Copy link
Collaborator

@mxmlnwbr mxmlnwbr commented Dec 7, 2023

Instead of showing supervisedBy: unassigned everywhere. It now shows the real supervisor, if there is one present.

***By the way: still don't know why my tailwind is always reordering stuff 🍔 ***

@mxmlnwbr mxmlnwbr requested a review from rschlaefli December 7, 2023 07:52
@mxmlnwbr mxmlnwbr self-assigned this Dec 7, 2023
if (!proposalDetails) return null

const getSupervisedBy = () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect use case for https://react.dev/reference/react/useMemo -> the computation is not expensive per se, but it could become more expensive, and good to understand why use memo could be valuable in such cases

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rschlaefli,
Cannot call Hooks conditionally problem
https://legacy.reactjs.org/docs/hooks-rules.html

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mxmlnwbr yes, it requires a reordering to conform with the hooks rule -> pushed a commit that shows an example that should work. PR should be ready for merge :)

Copy link

sonarqubecloud bot commented Dec 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mxmlnwbr mxmlnwbr merged commit 3f16447 into dev Dec 13, 2023
3 checks passed
@mxmlnwbr mxmlnwbr deleted the supervisedBy branch December 13, 2023 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants