Skip to content

Commit

Permalink
remove debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadee80 committed Aug 27, 2018
1 parent 1eefe70 commit 5369c84
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/src/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ export const supportMiddleware: Middleware = (store) => (next) => (action) => {
const state = store.getState()
const robot = state.robot.connection.connectRequest.name
const data = {user_id: userId, 'Robot Name': robot}
log.debug('Updating intercom data', {data})
intercom('update', {...data})
log.debug('Updating intercom data', data)
intercom('update', data)
}

if (action.type === 'api:PIPETTES_SUCCESS') {
const pipettes = action.payload.pipettes
const data = {user_id: userId, 'Pipettes': pipettes}
log.debug('Updating intercom data', {data})
intercom('update', {...data})
log.debug('Updating intercom data', data)
intercom('update', data)
}

return next(action)
Expand All @@ -50,7 +50,6 @@ export const supportMiddleware: Middleware = (store) => (next) => (action) => {
function initializeIntercom (config: SupportConfig) {
if (INTERCOM_ID) {
userId = config.userId

const data = {
app_id: INTERCOM_ID,
user_id: userId,
Expand Down

0 comments on commit 5369c84

Please sign in to comment.