diff --git a/.babelrc b/.babelrc index c31d5a0af4..7aa7ee538a 100644 --- a/.babelrc +++ b/.babelrc @@ -24,6 +24,7 @@ "babel-plugin-rewire", ["transform-define", { "__TEST__": "true", + "__VERSION_SHA__": "abcd", "__DEBUG__": false }] ] diff --git a/app/actions/sync.js b/app/actions/sync.js index 15e28e17c6..9ffdcc1768 100644 --- a/app/actions/sync.js +++ b/app/actions/sync.js @@ -17,6 +17,7 @@ import _ from 'lodash'; +import rollbar from '../utils/rollbar'; import * as actionTypes from '../constants/actionTypes'; import * as actionSources from '../constants/actionSources'; @@ -287,6 +288,14 @@ export function loginRequest() { export function loginSuccess(results) { const { user, profile, memberships } = results; const isClinicAccount = personUtils.userHasRole(user, 'clinic'); + rollbar.configure({ + payload: { + person: { + id: user.userid, + username: user.username, + } + } + }); return { type: actionTypes.LOGIN_SUCCESS, payload: { user, profile, memberships },