Implements 2 improvements from MR comments:

- Moves title of symptom in the header
- Deletes additional comma out of cycle day overview
This commit is contained in:
Bl00dyMarie
2018-08-30 11:47:15 +02:00
parent d711b411c7
commit c258ad9e01
6 changed files with 105 additions and 106 deletions
+2 -1
View File
@@ -98,6 +98,7 @@ export default class CycleDayOverView extends Component {
<SymptomBox
title='Pain'
onPress={() => this.navigate('PainEditView')}
data={getLabel('pain', cycleDay.pain)}
/>
{/* this is just to make the last row adhere to the grid
(and) because there are no pseudo properties in RN */}
@@ -178,7 +179,7 @@ function getLabel(symptomName, symptom) {
if(pain[key] && key !== 'note') {
painLabel.push(painLabels[key])
}
if(key === 'note'){
if(key === "note" && pain.note) {
painLabel.push(pain.note)
}
})