Created
April 4, 2019 04:46
-
-
Save sminnee/fd62f9d1ff6b92639740caec7fe2743c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/client/src/components/OptionsetField/OptionField.js b/client/src/components/OptionsetField/OptionField.js | |
index 4b0aeaa..35223df 100644 | |
--- a/client/src/components/OptionsetField/OptionField.js | |
+++ b/client/src/components/OptionsetField/OptionField.js | |
@@ -68,10 +68,14 @@ class OptionField extends Component { | |
} | |
render() { | |
- const labelText = this.props.leftTitle !== null | |
+ const leftTitle = this.props.leftTitle !== null | |
? this.props.leftTitle | |
: this.props.title; | |
+ const labelText = this.props.rightTitle !== null | |
+ ? leftTitle + ' ' + this.props.rightTitle | |
+ : leftTitle; | |
+ | |
return ( | |
<FormGroup check> | |
<Label check> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment