From 4c2878523def307b48e3249980b5189e34430464 Mon Sep 17 00:00:00 2001 From: Caden Buckhalt Date: Wed, 4 Dec 2024 14:49:14 -0800 Subject: [PATCH] make rule type options labels reflect entityType --- src/components/Query/Rules/EditEntityRule.js | 2 +- src/components/Query/Rules/withEntityRuleType.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Query/Rules/EditEntityRule.js b/src/components/Query/Rules/EditEntityRule.js index 8a71bdb22..8a1ab2b8d 100644 --- a/src/components/Query/Rules/EditEntityRule.js +++ b/src/components/Query/Rules/EditEntityRule.js @@ -87,7 +87,7 @@ const EditEntityRule = ({ > diff --git a/src/components/Query/Rules/withEntityRuleType.js b/src/components/Query/Rules/withEntityRuleType.js index 5562da201..015956c8a 100644 --- a/src/components/Query/Rules/withEntityRuleType.js +++ b/src/components/Query/Rules/withEntityRuleType.js @@ -10,9 +10,9 @@ const entityRuleTypes = { TYPE_RULE, }; -const entityRuleTypeOptions = [ - { label: 'Attribute - rule based on the value of this alter type\'s attributes.', value: VARIABLE_RULE }, - { label: 'Presence - based on the presence or absence of this alter type in the interview network.', value: TYPE_RULE }, +const entityRuleTypeOptions = (entityType) => [ + { label: `Attribute - rule based on the value of this ${entityType} type's attributes.`, value: VARIABLE_RULE }, + { label: `Presence - based on the presence or absence of this ${entityType} type in the interview network.`, value: TYPE_RULE }, ]; const withEntityRuleType = compose(