From f7c6f4bfd01b5ee7b2ca8caa6115093ed50e38e8 Mon Sep 17 00:00:00 2001 From: wunderfisch Date: Mon, 18 Mar 2024 18:36:30 +0100 Subject: [PATCH] replace hard coded label --- components/cycle-day/select-tab-group.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/cycle-day/select-tab-group.js b/components/cycle-day/select-tab-group.js index 6805b66..f94601a 100644 --- a/components/cycle-day/select-tab-group.js +++ b/components/cycle-day/select-tab-group.js @@ -21,7 +21,10 @@ export default function SelectTabGroup({ // Disable is only used for secondarySymptom in customization, if more come up maybe consider more tidy solution const showDisabledAlert = (label) => { - if (label === 'cervix' || label === 'cervical mucus') { + if ( + label === labels.secondarySymptom.cervix || + label === labels.secondarySymptom.mucus + ) { Alert.alert( labels.secondarySymptom.disabled.title, labels.secondarySymptom.disabled.message