From 582c7748ba06e93605ac83af6df008052a571a4c Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Tue, 17 Oct 2017 19:36:59 -0700 Subject: [PATCH] Added metadata to Bugsnag if it's defined --- frontend/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/index.js b/frontend/index.js index e6784ea7..12e49fe7 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -73,6 +73,15 @@ const Auth = ({ children }: AuthProps) => { }), }; + if (window.Bugsnag) { + Bugsnag.user = { + id: user.id, + name: user.name, + teamId: team.id, + team: team.name, + }; + } + authenticatedStores.collections.fetchAll(); }