-
Notifications
You must be signed in to change notification settings - Fork 1
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: Use override for school name and url #18
Conversation
{orgName} | ||
</Chip> | ||
))} | ||
<Chip className="chip-max-width"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there really ever more than one partner in the data? There is only ever a single override.
Do we need a more complex approach that uses the singular override OR the array of partners?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After further consideration, since we are only grabbing one name at
frontend-app-skills/src/skills-builder/skills-builder-modal/view-results/RecommendationCard.jsx
Line 23 in 52a6978
|| owners?.[0]?.name |
And considering that this value is prioritized over the partner value(s), we probably want to keep that pattern and just grab the first one in the partner
list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a case where there is more than one partner AND the override fields? The overrides are singular, and not arrays.
7c970ae
to
52a6978
Compare
Codecov Report
@@ Coverage Diff @@
## main #18 +/- ##
=======================================
Coverage ? 91.57%
=======================================
Files ? 30
Lines ? 368
Branches ? 66
=======================================
Hits ? 337
Misses ? 30
Partials ? 1 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
52a6978
to
749906e
Compare
If available, use the override fields for the preferred name of the institution and the override for the logo.