only init logrocket once authed
This commit is contained in:
@@ -15,10 +15,6 @@ const registerEvents = require('./events');
|
||||
|
||||
const Mnml = require('./components/mnml');
|
||||
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
LogRocket.init('yh0dy3/mnml');
|
||||
}
|
||||
|
||||
function stripeKey() {
|
||||
if (window.location.host === 'mnml.gg') return 'pk_live_fQGrL1uWww2ot8W1G7vTySAv004ygmnMXq';
|
||||
return 'pk_test_Cb49tTqTXpzk7nEmlGzRrNJg00AU0aNZDj';
|
||||
|
||||
@@ -127,6 +127,7 @@ function registerEvents(store) {
|
||||
|
||||
function setAccount(account) {
|
||||
if (account) {
|
||||
LogRocket.init('yh0dy3/mnml');
|
||||
LogRocket.identify(account.id, account);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user