Skip to content

Commit

Permalink
Merge pull request #49 from Lab-Lab-Lab/main
Browse files Browse the repository at this point in the history
fixes instrument assignment
  • Loading branch information
hcientist authored Nov 9, 2024
2 parents 7561b78 + 3b2c054 commit 6300007
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 56 deletions.
2 changes: 1 addition & 1 deletion components/forms/studentInstrument.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function StudentInstrument({ enrollment, token, options: instruments }) {

const updateInstrument = (ev) => {
const instrumentObj = instruments.find(
(instr) => instr.id === ev.target.value,
(instr) => instr.id === parseInt(ev.target.value, 10),
);

if (instrumentObj) {
Expand Down
117 changes: 62 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6300007

Please sign in to comment.