Accept 5-digit dienst numbers and normalize lookup type

This commit is contained in:
Eddy de Vink 2026-09-14 15:06:14 +02:00
commit c97d662856
3 changed files with 4 additions and 3 deletions

View file

@ -33,7 +33,7 @@ function loadDiensten() {
function findDienst(dienstnummer) {
const diensten = loadDiensten()
return diensten.find(d => d.dienstnummer === dienstnummer) || null
return diensten.find(d => String(d.dienstnummer) === dienstnummer) || null
}
function getPngFilePaths(dienst) {