Skip to content

Commit

Permalink
[Updater] Filter out misregistrations after all
Browse files Browse the repository at this point in the history
  • Loading branch information
valtterikantanen committed May 6, 2024
1 parent 6178d3d commit e626283
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,10 @@ const updateAttainments = async (
.filter(a => a.id !== null)
.filter(
a =>
properAttainmentTypes.has(a.type) && !attainmentsToBeExluced.has(a.id) && !doubleAttachment(a, fixedAttainments)
properAttainmentTypes.has(a.type) &&
!a.misregistration &&
!attainmentsToBeExluced.has(a.id) &&
!doubleAttachment(a, fixedAttainments)
)
.map(a => {
const mappedCredit = mapCredit(a)
Expand Down

0 comments on commit e626283

Please sign in to comment.