Skip to content

Commit 7e0bb3e

Browse files
committed
Fixing age limit, and adding tags
1 parent 99c3fd8 commit 7e0bb3e

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

frontend/src/components/TagEditor.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const subjectOptions: Option[] = [
2828
{ value: 'trans_femoral_amputation_right', label: 'Trans-femoral Amputation - Right' },
2929
{ value: 'trans_tibial_amputation_left', label: 'Trans-tibial Amputation - Left' },
3030
{ value: 'trans_tibial_amputation_right', label: 'Trans-tibial Amputation - Right' },
31+
{ value: 'osteoarthritis', label: 'Osteoarthritis' },
32+
{ value: 'knee_osteoarthritis_right', label: 'Knee Osteoarthritis - Right' },
33+
{ value: 'knee_osteoarthritis_left', label: 'Knee Osteoarthritis - Left' },
3134
];
3235

3336
const trialOptions: Option[] = [
@@ -54,6 +57,14 @@ const trialOptions: Option[] = [
5457
{ value: 'jump', label: 'Jump' },
5558
{ value: 'calibration', label: 'Calibration' },
5659
{ value: 'dance', label: 'Dance' },
60+
{ value: 'rigid_brace_left_ankle', label: 'Brace (Rigid) - Left Ankle' },
61+
{ value: 'rigid_brace_right_ankle', label: 'Brace (Rigid) - Right Ankle' },
62+
{ value: 'rigid_brace_left_knee', label: 'Brace (Rigid) - Left Knee' },
63+
{ value: 'rigid_brace_right_knee', label: 'Brace (Rigid) - Right Knee' },
64+
{ value: 'rigid_brace_left_hip', label: 'Brace (Rigid) - Left Hip' },
65+
{ value: 'rigid_brace_right_hip', label: 'Brace (Rigid) - Right Hip' },
66+
{ value: 'pneumatic_jets_shoes', label: 'Pneumatic Jets (Shoes)' },
67+
{ value: 'arms_crossed', label: 'Arms Crossed' },
5768
];
5869

5970
const MultiValueLabel = (props: MultiValueGenericProps<Option>) => {
@@ -83,14 +94,14 @@ const MultiValueLabel = (props: MultiValueGenericProps<Option>) => {
8394
if (props.data.integer) {
8495
rawValue = Math.round(rawValue);
8596
}
86-
if (props.data.min != null && rawValue < props.data.min) {
97+
if ((props.data.min != null) && rawValue < props.data.min) {
8798
rawValue = props.data.min;
8899
}
89-
if (props.data.max != null && rawValue > props.data.max) {
100+
if ((props.data.max != null) && rawValue > props.data.max) {
90101
rawValue = props.data.max;
91102
}
92103
setValue(rawValue);
93-
onChangeOption(props.data, value);
104+
onChangeOption(props.data, rawValue);
94105
}} />
95106
{props.data.addedNumberUnits}
96107
</span>;

0 commit comments

Comments
 (0)