Merge pull request #315 from jorilallo/jori/bugsnag-user-data

Added metadata to Bugsnag if it's defined
This commit is contained in:
Jori Lallo
2017-10-17 19:39:38 -07:00
committed by GitHub

View File

@ -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();
}