Skip to content

Commit 811c8fc

Browse files
committed
thanks to @jtibau for helping me catch this error
1 parent aeb47d5 commit 811c8fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/forms/studentInstrument.js

Lines changed: 1 addition & 1 deletion
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) {

0 commit comments

Comments
 (0)