Skip to content

Commit 678b8f9

Browse files
authored
Merge pull request #60 from minhtc/master
fix bugs: bad operand types for binary operator
2 parents 0f31a17 + f4b775a commit 678b8f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/io/sentry/RNSentryModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void setTags(ReadableMap tags) {
9494

9595
@ReactMethod
9696
public void setUser(ReadableMap user) {
97-
if (user.hasKey("email") && user.getString("userID") && user.getString("username")) {
97+
if (user.hasKey("email") && user.hasKey("userID") && user.hasKey("username")) {
9898
Sentry.setUser(
9999
new UserBuilder()
100100
.setEmail(user.getString("email"))

0 commit comments

Comments
 (0)