Skip to content

Commit

Permalink
Fix border-number-link valid attribute
Browse files Browse the repository at this point in the history
RISDEV-4567
  • Loading branch information
kiwikern committed Oct 10, 2024
1 parent 5d0e429 commit 3aa1dfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/services/borderNumberService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function invalidateBorderNumberLinks(
numbersToBeInvalidated.includes(link.getAttribute("nr")!),
)
.forEach((link) => {
link.setAttribute("isValid", "false")
link.setAttribute("valid", "false")
link.setAttribute("nr", "entfernt")
link.innerHTML = "entfernt"
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/services/borderNumberService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function borderNumberLink(
number: number | string,
{ valid }: { valid: boolean } = { valid: true },
) {
return `<border-number-link nr="${number}" isvalid="${valid}">${number}</border-number-link>`
return `<border-number-link nr="${number}" valid="${valid}">${number}</border-number-link>`
}

describe("borderNumberService", () => {
Expand Down

0 comments on commit 3aa1dfd

Please sign in to comment.