summaryrefslogtreecommitdiffhomepage
path: root/app/components
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-01-22 10:20:58 +0100
committerErik Larkö <erik@mullvad.net>2018-01-22 13:23:15 +0100
commit430ea2955170aaf78900dd41ab72ddb101e80df3 (patch)
tree6f224c8cae080d115409177c73e822a534b4d2d9 /app/components
parent3c5c61fc935566a31d3c98960512c1a559086385 (diff)
downloadmullvadvpn-430ea2955170aaf78900dd41ab72ddb101e80df3.tar.xz
mullvadvpn-430ea2955170aaf78900dd41ab72ddb101e80df3.zip
Condition for showing/not showing email on sent-succes.
No fancy function for email verification ...
Diffstat (limited to 'app/components')
-rw-r--r--app/components/Support.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/components/Support.js b/app/components/Support.js
index 63c8599005..18baed32c4 100644
--- a/app/components/Support.js
+++ b/app/components/Support.js
@@ -209,10 +209,15 @@ export default class Support extends Component {
<Text style={styles.support__send_status}>
Sent
</Text>
+
<Text style={styles.support__subtitle}>
- Thanks! We will look into this. If needed we will contact you on {'\u00A0'}
- <Text style={styles.support__sent_email}>{ this.state.email }</Text>
+ Thanks! We will look into this.
</Text>
+ { this.state.email.trim().length > 0 ?
+ <Text style={styles.support__subtitle}>If needed we will contact you on {'\u00A0'}
+ <Text style={styles.support__sent_email}>{ this.state.email }</Text>
+ </Text>
+ : null }
</View>
</View>
</View>;