Skip to content

Commit 581bfbe

Browse files
FabiDauTimDaub
authored andcommitted
updated rangeCheck for different min and max value
1 parent 4fd31be commit 581bfbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/NominalAllocator/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ function NominalAllocator(props) {
1616

1717
const rangeCheck = event => {
1818
if (event.target.value > props.max) {
19-
props.onUpdate(12);
19+
props.onUpdate(props.max);
2020
}
2121
if (event.target.value < props.min) {
22-
props.onUpdate(0);
22+
props.onUpdate(props.min);
2323
}
2424
};
2525

0 commit comments

Comments
 (0)