From 681162980f3eae538945b4e9ece370f5095d2001 Mon Sep 17 00:00:00 2001 From: ntr Date: Wed, 9 Oct 2019 08:35:05 +1100 Subject: [PATCH] logrocket accounts --- client/src/components/anims/siphon.jsx | 2 +- client/src/events.jsx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/anims/siphon.jsx b/client/src/components/anims/siphon.jsx index cb1b376f..5a286eb7 100644 --- a/client/src/components/anims/siphon.jsx +++ b/client/src/components/anims/siphon.jsx @@ -53,7 +53,7 @@ class Siphon extends Component { r: 0, delay: TIMES.TARGET_DELAY_MS, duration, - easing: 'easeInCubic', + easing: 'easeInSine', }); } diff --git a/client/src/events.jsx b/client/src/events.jsx index 6bc39110..07a8262b 100644 --- a/client/src/events.jsx +++ b/client/src/events.jsx @@ -1,3 +1,4 @@ +const LogRocket = require('logrocket'); const querystring = require('query-string'); const eachSeries = require('async/eachSeries'); @@ -123,6 +124,10 @@ function registerEvents(store) { } function setAccount(account) { + if (account) { + LogRocket.identify(account.id, account); + } + store.dispatch(actions.setAccount(account)); }