Skip to content

Commit

Permalink
feat: rename placeholder for logic and mrf components (#7482)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-tejas authored Jul 5, 2024
1 parent d06fb42 commit fc52749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export const EditConditionBlock = ({
control={control}
name={`${name}.field`}
rules={{
required: 'Please select a question.',
required: 'Please select a field.',
validate: (value) =>
!logicableFields ||
Object.keys(logicableFields).includes(value) ||
Expand All @@ -318,7 +318,7 @@ export const EditConditionBlock = ({
<SingleSelect
isDisabled={isLoading}
isClearable={false}
placeholder="Select a question"
placeholder="Select a field"
items={allowedIfConditionFieldsOptions}
{...field}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const RespondentInput = ({ isLoading, formMethods }: RespondentInputProps) => {
control={control}
name="field"
rules={{
required: 'Please select a question',
required: 'Please select a field',
validate: (value) =>
!emailFormFields ||
emailFormFields.some(({ _id }) => _id === value) ||
Expand All @@ -180,7 +180,7 @@ const RespondentInput = ({ isLoading, formMethods }: RespondentInputProps) => {
<SingleSelect
isDisabled={isLoading}
isClearable={false}
placeholder="Select a question"
placeholder="Select a field"
items={emailFieldItems}
value={value}
{...rest}
Expand Down

0 comments on commit fc52749

Please sign in to comment.