Skip to content

Commit

Permalink
Zip code filtering appends zip codes instead of overwritting what is …
Browse files Browse the repository at this point in the history
…there
  • Loading branch information
2s2e committed May 24, 2024
1 parent 4c44944 commit 6ce5944
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/app/staff/vsr/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ export default function VSRTableView() {
}
}
}
setFilteredZipCodes(zipCodes);
//add zipCodes to filteredZipCodes and zipcodes
const combinedZipCodes = [...(filteredZipCodes ?? []), ...(zipCodes ?? [])];

setFilteredZipCodes(combinedZipCodes);
setFilteredIncome(incomeLevel);
fetchVSRs(search, zipCodes, incomeLevel, status);
}}
Expand Down

0 comments on commit 6ce5944

Please sign in to comment.