Skip to content

Commit

Permalink
fix bugs: bad operand types for binary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtc committed May 16, 2017
1 parent 0f31a17 commit f4b775a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/java/io/sentry/RNSentryModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void setTags(ReadableMap tags) {

@ReactMethod
public void setUser(ReadableMap user) {
if (user.hasKey("email") && user.getString("userID") && user.getString("username")) {
if (user.hasKey("email") && user.hasKey("userID") && user.hasKey("username")) {
Sentry.setUser(
new UserBuilder()
.setEmail(user.getString("email"))
Expand Down

0 comments on commit f4b775a

Please sign in to comment.