Merge pull request #315 from jorilallo/jori/bugsnag-user-data
Added metadata to Bugsnag if it's defined
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user