-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfixin #56
Bugfixin #56
Conversation
prevent them from constantly updating their phone number each time they sign in by only rendering the phone form if it's a new user
app/AllFriendsList.js
Outdated
@@ -63,14 +63,20 @@ export default class AllFriendsList extends Component { | |||
|
|||
renderContacts(friend) { | |||
const { navigate } = this.props.navigation; | |||
var privacy = friend.showSetting; | |||
var label = friend.currentLabel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let instead of var? :-)
app/Home.js
Outdated
@@ -46,13 +46,19 @@ export default class HomeScreen extends Component { | |||
|
|||
renderMembers(memberData) { | |||
const { navigate } = this.props.navigation; | |||
var privacy = memberData.showSetting; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let instead of var? :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was another var right below this one too :-)
app/SignUp.js
Outdated
data: {phoneNumber: this.state.phoneNumber} | ||
}) | ||
.then(({data}) => { | ||
console.log('updated user after google sign in save location: ', data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this console.log in production?
app/SignUp.js
Outdated
}) | ||
.then(({data}) => { | ||
console.log('updated user after google sign in save location: ', data); | ||
this.setState({dbUser: data}, () => console.log('state after dbuser: ', this.state)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this console.log in production?
Prevent constantly updating phone number, prevent taking an existing user through the sign up process, etc.