Skip to content

Commit

Permalink
1.Allow only integers in request time field
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhaswati1148 committed Jul 19, 2024
1 parent a4c8279 commit bded21b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ export function QuestionaryComponentInstrumentPicker(
{value.instrumentName}:
</InputAdornment>
),
inputProps: { step: '0.5', min: '0.5' },
}}
data-time-request={value.instrumentId + '-time-request'}
onChange={(e: React.ChangeEvent<HTMLTextAreaElement>) => {
Expand Down Expand Up @@ -263,7 +262,7 @@ export function QuestionaryComponentInstrumentPicker(
<RadioGroup
id={id}
name={id}
value={answer.value ?? null}
value={answer.value?.instrumentId ?? null}
onChange={handleOnChange}
className={
config.instruments.length < 3
Expand All @@ -283,6 +282,9 @@ export function QuestionaryComponentInstrumentPicker(
);
})}
</RadioGroup>
{config.requestTime && requestTimeForInstrument && (
<DynamicTimeFields />
)}
{isError && <FormHelperText>{fieldError}</FormHelperText>}
</FormControl>
);
Expand Down

1 comment on commit bded21b

@Bhaswati1148
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also added the request time field in radio button group

Please sign in to comment.