Skip to content

Commit

Permalink
Update wrapper.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Oct 14, 2024
1 parent 9ed26d0 commit 718ad07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ export const NATIVE: SentryNativeWrapper = {
},

/**
* Sets context on the native scope. Not implemented in Android yet.
* Sets context on the native scope.
* @param key string
* @param context key-value map
*/
Expand All @@ -477,9 +477,9 @@ export const NATIVE: SentryNativeWrapper = {
}

if (normalizedContext) {
return RNSentry.setContext(key, normalizedContext);
RNSentry.setContext(key, normalizedContext);
} else {
return RNSentry.setContext(key, { error: '**non-serializable**' });
RNSentry.setContext(key, { error: '**non-serializable**' });
}
},

Expand Down

0 comments on commit 718ad07

Please sign in to comment.