Skip to content

Commit

Permalink
Merge pull request #91 from ufabc-next/fix/component-name-comparision
Browse files Browse the repository at this point in the history
Fix/component name comparision
  • Loading branch information
Joabesv authored Aug 16, 2024
2 parents 630da37 + a2fa7ac commit eb2a2f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified .env.prod.secret
Binary file not shown.
2 changes: 1 addition & 1 deletion .gitsecret/paths/mapping.cfg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.env.prod:d03d1159df62a7ceeb2eefad1f98ab0d59fb705cfa1879ae27b7910c1726c3b0
.env.prod:85449f0097d01d954140258c2e9a15423d4d335a68f7995b241150ce0bf50f5f
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ async function hydrateComponents(component: StudentComponent) {
name: subject.name.toLocaleLowerCase(),
credits: subject.creditos,
}));
const validComponent = normalizedSubjects.find((subject) =>
subject.name.includes(component.disciplina),
const validComponent = normalizedSubjects.find(
(subject) => subject.name === component.disciplina,
);

if (!validComponent) {
Expand Down

0 comments on commit eb2a2f9

Please sign in to comment.