Skip to content

Commit 26bd452

Browse files
committed
display user from fake API
1 parent 6529fbb commit 26bd452

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

App/Containers/Example/ExampleScreen.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ class ExampleScreen extends React.Component {
3030
let result = null
3131
if (user && !error) {
3232
result =
33-
"I'm a fake user, my name is " + user.name + '.\n' + this.props.liveInEurope
34-
? 'I live in Europe !'
35-
: "I don't live in Europe."
33+
"I'm a fake user, my name is " +
34+
user.name +
35+
'.\n' +
36+
(this.props.liveInEurope ? 'I live in Europe !' : "I don't live in Europe.")
3637
}
3738

3839
return (

0 commit comments

Comments
 (0)