Use proper method for unsetting Sentry user context on logout

Current implementation causes an error popup on logout if Sentry is enabled. This is because `remove_user` is not a valid method on the `scope` object. Changing to use the `setUser` with a `null` parameter as discussed here - https://github.com/getsentry/sentry-docs/issues/500
This commit is contained in:
Greg Gutkin 2019-05-06 10:44:29 -07:00 committed by Jenni Nurmi
parent 313ab16451
commit 55bf312b87

View file

@ -43,7 +43,7 @@ export const setUserId = userId => {
export const clearUserId = () => {
Sentry.configureScope(scope => {
scope.remove_user();
scope.setUser(null);
});
};