Skip to content

Commit 6300007

Browse files
authored
Merge pull request #49 from Lab-Lab-Lab/main
fixes instrument assignment
2 parents 7561b78 + 3b2c054 commit 6300007

File tree

2 files changed

+63
-56
lines changed

2 files changed

+63
-56
lines changed

components/forms/studentInstrument.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function StudentInstrument({ enrollment, token, options: instruments }) {
1616

1717
const updateInstrument = (ev) => {
1818
const instrumentObj = instruments.find(
19-
(instr) => instr.id === ev.target.value,
19+
(instr) => instr.id === parseInt(ev.target.value, 10),
2020
);
2121

2222
if (instrumentObj) {

package-lock.json

+62-55
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)